AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

NamedQuery

import "github.com/aws/aws-sdk-go/service/athena"

type NamedQuery struct { Database *string `min:"1" type:"string" required:"true"` Description *string `min:"1" type:"string"` Name *string `min:"1" type:"string" required:"true"` NamedQueryId *string `type:"string"` QueryString *string `min:"1" type:"string" required:"true"` WorkGroup *string `type:"string"` }

A query, where QueryString is the list of SQL query statements that comprise the query.

Database

Type: *string

The database to which the query belongs.

Database is a required field

Description

Type: *string

The query description.

Name

Type: *string

The query name.

Name is a required field

NamedQueryId

Type: *string

The unique identifier of the query.

QueryString

Type: *string

The SQL query statements that comprise the query.

QueryString is a required field

WorkGroup

Type: *string

The name of the workgroup that contains the named query.

Method

GoString

func (s NamedQuery) GoString() string

GoString returns the string representation

SetDatabase

func (s *NamedQuery) SetDatabase(v string) *NamedQuery

SetDatabase sets the Database field's value.

SetDescription

func (s *NamedQuery) SetDescription(v string) *NamedQuery

SetDescription sets the Description field's value.

SetName

func (s *NamedQuery) SetName(v string) *NamedQuery

SetName sets the Name field's value.

SetNamedQueryId

func (s *NamedQuery) SetNamedQueryId(v string) *NamedQuery

SetNamedQueryId sets the NamedQueryId field's value.

SetQueryString

func (s *NamedQuery) SetQueryString(v string) *NamedQuery

SetQueryString sets the QueryString field's value.

SetWorkGroup

func (s *NamedQuery) SetWorkGroup(v string) *NamedQuery

SetWorkGroup sets the WorkGroup field's value.

String

func (s NamedQuery) String() string

String returns the string representation

On this page: