_id
stringlengths
2
7
title
stringlengths
1
118
partition
stringclasses
3 values
text
stringlengths
52
85.5k
language
stringclasses
1 value
meta_information
dict
q300
SetVirtualServices
train
func (s *ListVirtualServicesOutput) SetVirtualServices(v []*VirtualServiceRef) *ListVirtualServicesOutput { s.VirtualServices = v return s }
go
{ "resource": "" }
q301
SetEgressFilter
train
func (s *MeshSpec) SetEgressFilter(v *EgressFilter) *MeshSpec { s.EgressFilter = v return s }
go
{ "resource": "" }
q302
SetHttpRoute
train
func (s *RouteSpec) SetHttpRoute(v *HttpRoute) *RouteSpec { s.HttpRoute = v return s }
go
{ "resource": "" }
q303
SetTcpRoute
train
func (s *RouteSpec) SetTcpRoute(v *TcpRoute) *RouteSpec { s.TcpRoute = v return s }
go
{ "resource": "" }
q304
SetDns
train
func (s *ServiceDiscovery) SetDns(v *DnsServiceDiscovery) *ServiceDiscovery { s.Dns = v return s }
go
{ "resource": "" }
q305
SetBackends
train
func (s *VirtualNodeSpec) SetBackends(v []*Backend) *VirtualNodeSpec { s.Backends = v return s }
go
{ "resource": "" }
q306
SetServiceDiscovery
train
func (s *VirtualNodeSpec) SetServiceDiscovery(v *ServiceDiscovery) *VirtualNodeSpec { s.ServiceDiscovery = v return s }
go
{ "resource": "" }
q307
SetArrayBaseColumnType
train
func (s *ColumnMetadata) SetArrayBaseColumnType(v int64) *ColumnMetadata { s.ArrayBaseColumnType = &v return s }
go
{ "resource": "" }
q308
SetIsAutoIncrement
train
func (s *ColumnMetadata) SetIsAutoIncrement(v bool) *ColumnMetadata { s.IsAutoIncrement = &v return s }
go
{ "resource": "" }
q309
SetIsCaseSensitive
train
func (s *ColumnMetadata) SetIsCaseSensitive(v bool) *ColumnMetadata { s.IsCaseSensitive = &v return s }
go
{ "resource": "" }
q310
SetIsCurrency
train
func (s *ColumnMetadata) SetIsCurrency(v bool) *ColumnMetadata { s.IsCurrency = &v return s }
go
{ "resource": "" }
q311
SetIsSigned
train
func (s *ColumnMetadata) SetIsSigned(v bool) *ColumnMetadata { s.IsSigned = &v return s }
go
{ "resource": "" }
q312
SetDbClusterOrInstanceArn
train
func (s *ExecuteSqlInput) SetDbClusterOrInstanceArn(v string) *ExecuteSqlInput { s.DbClusterOrInstanceArn = &v return s }
go
{ "resource": "" }
q313
SetSqlStatements
train
func (s *ExecuteSqlInput) SetSqlStatements(v string) *ExecuteSqlInput { s.SqlStatements = &v return s }
go
{ "resource": "" }
q314
SetSqlStatementResults
train
func (s *ExecuteSqlOutput) SetSqlStatementResults(v []*SqlStatementResult) *ExecuteSqlOutput { s.SqlStatementResults = v return s }
go
{ "resource": "" }
q315
SetColumnCount
train
func (s *ResultSetMetadata) SetColumnCount(v int64) *ResultSetMetadata { s.ColumnCount = &v return s }
go
{ "resource": "" }
q316
SetColumnMetadata
train
func (s *ResultSetMetadata) SetColumnMetadata(v []*ColumnMetadata) *ResultSetMetadata { s.ColumnMetadata = v return s }
go
{ "resource": "" }
q317
SetNumberOfRecordsUpdated
train
func (s *SqlStatementResult) SetNumberOfRecordsUpdated(v int64) *SqlStatementResult { s.NumberOfRecordsUpdated = &v return s }
go
{ "resource": "" }
q318
SetResultFrame
train
func (s *SqlStatementResult) SetResultFrame(v *ResultFrame) *SqlStatementResult { s.ResultFrame = v return s }
go
{ "resource": "" }
q319
SetArrayValues
train
func (s *Value) SetArrayValues(v []*Value) *Value { s.ArrayValues = v return s }
go
{ "resource": "" }
q320
SetBigIntValue
train
func (s *Value) SetBigIntValue(v int64) *Value { s.BigIntValue = &v return s }
go
{ "resource": "" }
q321
SetBitValue
train
func (s *Value) SetBitValue(v bool) *Value { s.BitValue = &v return s }
go
{ "resource": "" }
q322
SetBlobValue
train
func (s *Value) SetBlobValue(v []byte) *Value { s.BlobValue = v return s }
go
{ "resource": "" }
q323
SetIntValue
train
func (s *Value) SetIntValue(v int64) *Value { s.IntValue = &v return s }
go
{ "resource": "" }
q324
SetIsNull
train
func (s *Value) SetIsNull(v bool) *Value { s.IsNull = &v return s }
go
{ "resource": "" }
q325
SetRealValue
train
func (s *Value) SetRealValue(v float64) *Value { s.RealValue = &v return s }
go
{ "resource": "" }
q326
SetStructValue
train
func (s *Value) SetStructValue(v *StructValue) *Value { s.StructValue = v return s }
go
{ "resource": "" }
q327
SetConnectionErrorCode
train
func (s *CustomKeyStoresListEntry) SetConnectionErrorCode(v string) *CustomKeyStoresListEntry { s.ConnectionErrorCode = &v return s }
go
{ "resource": "" }
q328
SetCustomKeyStores
train
func (s *DescribeCustomKeyStoresOutput) SetCustomKeyStores(v []*CustomKeyStoresListEntry) *DescribeCustomKeyStoresOutput { s.CustomKeyStores = v return s }
go
{ "resource": "" }
q329
SetKeyRotationEnabled
train
func (s *GetKeyRotationStatusOutput) SetKeyRotationEnabled(v bool) *GetKeyRotationStatusOutput { s.KeyRotationEnabled = &v return s }
go
{ "resource": "" }
q330
SetWrappingAlgorithm
train
func (s *GetParametersForImportInput) SetWrappingAlgorithm(v string) *GetParametersForImportInput { s.WrappingAlgorithm = &v return s }
go
{ "resource": "" }
q331
SetWrappingKeySpec
train
func (s *GetParametersForImportInput) SetWrappingKeySpec(v string) *GetParametersForImportInput { s.WrappingKeySpec = &v return s }
go
{ "resource": "" }
q332
SetParametersValidTo
train
func (s *GetParametersForImportOutput) SetParametersValidTo(v time.Time) *GetParametersForImportOutput { s.ParametersValidTo = &v return s }
go
{ "resource": "" }
q333
SetEncryptionContextEquals
train
func (s *GrantConstraints) SetEncryptionContextEquals(v map[string]*string) *GrantConstraints { s.EncryptionContextEquals = v return s }
go
{ "resource": "" }
q334
SetEncryptionContextSubset
train
func (s *GrantConstraints) SetEncryptionContextSubset(v map[string]*string) *GrantConstraints { s.EncryptionContextSubset = v return s }
go
{ "resource": "" }
q335
SetIssuingAccount
train
func (s *GrantListEntry) SetIssuingAccount(v string) *GrantListEntry { s.IssuingAccount = &v return s }
go
{ "resource": "" }
q336
SetEncryptedKeyMaterial
train
func (s *ImportKeyMaterialInput) SetEncryptedKeyMaterial(v []byte) *ImportKeyMaterialInput { s.EncryptedKeyMaterial = v return s }
go
{ "resource": "" }
q337
SetKeyArn
train
func (s *KeyListEntry) SetKeyArn(v string) *KeyListEntry { s.KeyArn = &v return s }
go
{ "resource": "" }
q338
SetKeyManager
train
func (s *KeyMetadata) SetKeyManager(v string) *KeyMetadata { s.KeyManager = &v return s }
go
{ "resource": "" }
q339
SetKeyState
train
func (s *KeyMetadata) SetKeyState(v string) *KeyMetadata { s.KeyState = &v return s }
go
{ "resource": "" }
q340
SetDestinationEncryptionContext
train
func (s *ReEncryptInput) SetDestinationEncryptionContext(v map[string]*string) *ReEncryptInput { s.DestinationEncryptionContext = v return s }
go
{ "resource": "" }
q341
SetDestinationKeyId
train
func (s *ReEncryptInput) SetDestinationKeyId(v string) *ReEncryptInput { s.DestinationKeyId = &v return s }
go
{ "resource": "" }
q342
SetSourceEncryptionContext
train
func (s *ReEncryptInput) SetSourceEncryptionContext(v map[string]*string) *ReEncryptInput { s.SourceEncryptionContext = v return s }
go
{ "resource": "" }
q343
SetSourceKeyId
train
func (s *ReEncryptOutput) SetSourceKeyId(v string) *ReEncryptOutput { s.SourceKeyId = &v return s }
go
{ "resource": "" }
q344
SetPendingWindowInDays
train
func (s *ScheduleKeyDeletionInput) SetPendingWindowInDays(v int64) *ScheduleKeyDeletionInput { s.PendingWindowInDays = &v return s }
go
{ "resource": "" }
q345
SetNewCustomKeyStoreName
train
func (s *UpdateCustomKeyStoreInput) SetNewCustomKeyStoreName(v string) *UpdateCustomKeyStoreInput { s.NewCustomKeyStoreName = &v return s }
go
{ "resource": "" }
q346
SetAWSAccountIds
train
func (s *AddPermissionInput) SetAWSAccountIds(v []*string) *AddPermissionInput { s.AWSAccountIds = v return s }
go
{ "resource": "" }
q347
SetSenderFault
train
func (s *BatchResultErrorEntry) SetSenderFault(v bool) *BatchResultErrorEntry { s.SenderFault = &v return s }
go
{ "resource": "" }
q348
SetQueueOwnerAWSAccountId
train
func (s *GetQueueUrlInput) SetQueueOwnerAWSAccountId(v string) *GetQueueUrlInput { s.QueueOwnerAWSAccountId = &v return s }
go
{ "resource": "" }
q349
SetQueueNamePrefix
train
func (s *ListQueuesInput) SetQueueNamePrefix(v string) *ListQueuesInput { s.QueueNamePrefix = &v return s }
go
{ "resource": "" }
q350
SetMD5OfBody
train
func (s *Message) SetMD5OfBody(v string) *Message { s.MD5OfBody = &v return s }
go
{ "resource": "" }
q351
SetBinaryListValues
train
func (s *MessageAttributeValue) SetBinaryListValues(v [][]byte) *MessageAttributeValue { s.BinaryListValues = v return s }
go
{ "resource": "" }
q352
SetStringListValues
train
func (s *MessageAttributeValue) SetStringListValues(v []*string) *MessageAttributeValue { s.StringListValues = v return s }
go
{ "resource": "" }
q353
SetMaxNumberOfMessages
train
func (s *ReceiveMessageInput) SetMaxNumberOfMessages(v int64) *ReceiveMessageInput { s.MaxNumberOfMessages = &v return s }
go
{ "resource": "" }
q354
SetMessageAttributeNames
train
func (s *ReceiveMessageInput) SetMessageAttributeNames(v []*string) *ReceiveMessageInput { s.MessageAttributeNames = v return s }
go
{ "resource": "" }
q355
SetReceiveRequestAttemptId
train
func (s *ReceiveMessageInput) SetReceiveRequestAttemptId(v string) *ReceiveMessageInput { s.ReceiveRequestAttemptId = &v return s }
go
{ "resource": "" }
q356
SetWaitTimeSeconds
train
func (s *ReceiveMessageInput) SetWaitTimeSeconds(v int64) *ReceiveMessageInput { s.WaitTimeSeconds = &v return s }
go
{ "resource": "" }
q357
WaitUntilAlarmExists
train
func (c *CloudWatch) WaitUntilAlarmExists(input *DescribeAlarmsInput) error { return c.WaitUntilAlarmExistsWithContext(aws.BackgroundContext(), input) }
go
{ "resource": "" }
q358
contentMD5
train
func contentMD5(r *request.Request) { h := md5.New() if !aws.IsReaderSeekable(r.Body) { if r.Config.Logger != nil { r.Config.Logger.Log(fmt.Sprintf( "Unable to compute Content-MD5 for unseekable body, S3.%s", r.Operation.Name)) } return } if _, err := copySeekableBody(h, r.Body); err != nil { r.Error = awserr.New("ContentMD5", "failed to compute body MD5", err) return } // encode the md5 checksum in base64 and set the request header. v := base64.StdEncoding.EncodeToString(h.Sum(nil)) r.HTTPRequest.Header.Set(contentMD5Header, v) }
go
{ "resource": "" }
q359
computeBodyHashes
train
func computeBodyHashes(r *request.Request) { if aws.BoolValue(r.Config.S3DisableContentMD5Validation) { return } if r.IsPresigned() { return } if r.Error != nil || !aws.IsReaderSeekable(r.Body) { return } var md5Hash, sha256Hash hash.Hash hashers := make([]io.Writer, 0, 2) // Determine upfront which hashes can be set without overriding user // provide header data. if v := r.HTTPRequest.Header.Get(contentMD5Header); len(v) == 0 { md5Hash = md5.New() hashers = append(hashers, md5Hash) } if v := r.HTTPRequest.Header.Get(contentSha256Header); len(v) == 0 { sha256Hash = sha256.New() hashers = append(hashers, sha256Hash) } // Create the destination writer based on the hashes that are not already // provided by the user. var dst io.Writer switch len(hashers) { case 0: return case 1: dst = hashers[0] default: dst = io.MultiWriter(hashers...) } if _, err := copySeekableBody(dst, r.Body); err != nil { r.Error = awserr.New("BodyHashError", "failed to compute body hashes", err) return } // For the hashes created, set the associated headers that the user did not // already provide. if md5Hash != nil { sum := make([]byte, md5.Size) encoded := make([]byte, md5Base64EncLen) base64.StdEncoding.Encode(encoded, md5Hash.Sum(sum[0:0])) r.HTTPRequest.Header[contentMD5Header] = []string{string(encoded)} } if sha256Hash != nil { encoded := make([]byte, sha256HexEncLen) sum := make([]byte, sha256.Size) hex.Encode(encoded, sha256Hash.Sum(sum[0:0])) r.HTTPRequest.Header[contentSha256Header] = []string{string(encoded)} } }
go
{ "resource": "" }
q360
SetAttachmentLinkUrl
train
func (s *GenericAttachment) SetAttachmentLinkUrl(v string) *GenericAttachment { s.AttachmentLinkUrl = &v return s }
go
{ "resource": "" }
q361
SetButtons
train
func (s *GenericAttachment) SetButtons(v []*Button) *GenericAttachment { s.Buttons = v return s }
go
{ "resource": "" }
q362
SetSubTitle
train
func (s *GenericAttachment) SetSubTitle(v string) *GenericAttachment { s.SubTitle = &v return s }
go
{ "resource": "" }
q363
SetInputStream
train
func (s *PostContentInput) SetInputStream(v io.ReadSeeker) *PostContentInput { s.InputStream = v return s }
go
{ "resource": "" }
q364
SetInputTranscript
train
func (s *PostContentOutput) SetInputTranscript(v string) *PostContentOutput { s.InputTranscript = &v return s }
go
{ "resource": "" }
q365
SetInputText
train
func (s *PostTextInput) SetInputText(v string) *PostTextInput { s.InputText = &v return s }
go
{ "resource": "" }
q366
SetGenericAttachments
train
func (s *ResponseCard) SetGenericAttachments(v []*GenericAttachment) *ResponseCard { s.GenericAttachments = v return s }
go
{ "resource": "" }
q367
HasHostLabelMembers
train
func (s *Shape) HasHostLabelMembers() bool { for _, ref := range s.MemberRefs { if ref.HostLabel { return true } } return false }
go
{ "resource": "" }
q368
SetSourcePortfolioId
train
func (s *AssociateProductWithPortfolioInput) SetSourcePortfolioId(v string) *AssociateProductWithPortfolioInput { s.SourcePortfolioId = &v return s }
go
{ "resource": "" }
q369
SetConstraintId
train
func (s *ConstraintDetail) SetConstraintId(v string) *ConstraintDetail { s.ConstraintId = &v return s }
go
{ "resource": "" }
q370
SetSourceProductArn
train
func (s *CopyProductInput) SetSourceProductArn(v string) *CopyProductInput { s.SourceProductArn = &v return s }
go
{ "resource": "" }
q371
SetSourceProvisioningArtifactIdentifiers
train
func (s *CopyProductInput) SetSourceProvisioningArtifactIdentifiers(v []map[string]*string) *CopyProductInput { s.SourceProvisioningArtifactIdentifiers = v return s }
go
{ "resource": "" }
q372
SetTargetProductName
train
func (s *CopyProductInput) SetTargetProductName(v string) *CopyProductInput { s.TargetProductName = &v return s }
go
{ "resource": "" }
q373
SetCopyProductStatus
train
func (s *DescribeCopyProductStatusOutput) SetCopyProductStatus(v string) *DescribeCopyProductStatusOutput { s.CopyProductStatus = &v return s }
go
{ "resource": "" }
q374
SetOrganizationNodeValue
train
func (s *DescribePortfolioShareStatusOutput) SetOrganizationNodeValue(v string) *DescribePortfolioShareStatusOutput { s.OrganizationNodeValue = &v return s }
go
{ "resource": "" }
q375
SetShareDetails
train
func (s *DescribePortfolioShareStatusOutput) SetShareDetails(v *ShareDetails) *DescribePortfolioShareStatusOutput { s.ShareDetails = v return s }
go
{ "resource": "" }
q376
SetProvisioningArtifactSummaries
train
func (s *DescribeProductAsAdminOutput) SetProvisioningArtifactSummaries(v []*ProvisioningArtifactSummary) *DescribeProductAsAdminOutput { s.ProvisioningArtifactSummaries = v return s }
go
{ "resource": "" }
q377
SetCloudWatchDashboards
train
func (s *DescribeProvisionedProductOutput) SetCloudWatchDashboards(v []*CloudWatchDashboard) *DescribeProvisionedProductOutput { s.CloudWatchDashboards = v return s }
go
{ "resource": "" }
q378
SetProvisionedProductDetail
train
func (s *DescribeProvisionedProductOutput) SetProvisionedProductDetail(v *ProvisionedProductDetail) *DescribeProvisionedProductOutput { s.ProvisionedProductDetail = v return s }
go
{ "resource": "" }
q379
SetProvisionedProductPlanDetails
train
func (s *DescribeProvisionedProductPlanOutput) SetProvisionedProductPlanDetails(v *ProvisionedProductPlanDetails) *DescribeProvisionedProductPlanOutput { s.ProvisionedProductPlanDetails = v return s }
go
{ "resource": "" }
q380
SetResourceChanges
train
func (s *DescribeProvisionedProductPlanOutput) SetResourceChanges(v []*ResourceChange) *DescribeProvisionedProductPlanOutput { s.ResourceChanges = v return s }
go
{ "resource": "" }
q381
SetProvisioningArtifactPreferences
train
func (s *DescribeProvisioningParametersOutput) SetProvisioningArtifactPreferences(v *ProvisioningArtifactPreferences) *DescribeProvisioningParametersOutput { s.ProvisioningArtifactPreferences = v return s }
go
{ "resource": "" }
q382
SetUsageInstructions
train
func (s *DescribeProvisioningParametersOutput) SetUsageInstructions(v []*UsageInstruction) *DescribeProvisioningParametersOutput { s.UsageInstructions = v return s }
go
{ "resource": "" }
q383
SetRecordOutputs
train
func (s *DescribeRecordOutput) SetRecordOutputs(v []*RecordOutput) *DescribeRecordOutput { s.RecordOutputs = v return s }
go
{ "resource": "" }
q384
SetExecuteToken
train
func (s *ExecuteProvisionedProductServiceActionInput) SetExecuteToken(v string) *ExecuteProvisionedProductServiceActionInput { s.ExecuteToken = &v return s }
go
{ "resource": "" }
q385
SetAccessStatus
train
func (s *GetAWSOrganizationsAccessStatusOutput) SetAccessStatus(v string) *GetAWSOrganizationsAccessStatusOutput { s.AccessStatus = &v return s }
go
{ "resource": "" }
q386
SetConstraintDetails
train
func (s *ListConstraintsForPortfolioOutput) SetConstraintDetails(v []*ConstraintDetail) *ListConstraintsForPortfolioOutput { s.ConstraintDetails = v return s }
go
{ "resource": "" }
q387
SetLaunchPathSummaries
train
func (s *ListLaunchPathsOutput) SetLaunchPathSummaries(v []*LaunchPathSummary) *ListLaunchPathsOutput { s.LaunchPathSummaries = v return s }
go
{ "resource": "" }
q388
SetOrganizationNodeType
train
func (s *ListOrganizationPortfolioAccessInput) SetOrganizationNodeType(v string) *ListOrganizationPortfolioAccessInput { s.OrganizationNodeType = &v return s }
go
{ "resource": "" }
q389
SetOrganizationNodes
train
func (s *ListOrganizationPortfolioAccessOutput) SetOrganizationNodes(v []*OrganizationNode) *ListOrganizationPortfolioAccessOutput { s.OrganizationNodes = v return s }
go
{ "resource": "" }
q390
SetProvisionedProductPlans
train
func (s *ListProvisionedProductPlansOutput) SetProvisionedProductPlans(v []*ProvisionedProductPlanSummary) *ListProvisionedProductPlansOutput { s.ProvisionedProductPlans = v return s }
go
{ "resource": "" }
q391
SetProvisioningArtifactViews
train
func (s *ListProvisioningArtifactsForServiceActionOutput) SetProvisioningArtifactViews(v []*ProvisioningArtifactView) *ListProvisioningArtifactsForServiceActionOutput { s.ProvisioningArtifactViews = v return s }
go
{ "resource": "" }
q392
SetProvisioningArtifactDetails
train
func (s *ListProvisioningArtifactsOutput) SetProvisioningArtifactDetails(v []*ProvisioningArtifactDetail) *ListProvisioningArtifactsOutput { s.ProvisioningArtifactDetails = v return s }
go
{ "resource": "" }
q393
SetSearchFilter
train
func (s *ListRecordHistoryInput) SetSearchFilter(v *ListRecordHistorySearchFilter) *ListRecordHistoryInput { s.SearchFilter = v return s }
go
{ "resource": "" }
q394
SetRecordDetails
train
func (s *ListRecordHistoryOutput) SetRecordDetails(v []*RecordDetail) *ListRecordHistoryOutput { s.RecordDetails = v return s }
go
{ "resource": "" }
q395
SetResourceDetails
train
func (s *ListResourcesForTagOptionOutput) SetResourceDetails(v []*ResourceDetail) *ListResourcesForTagOptionOutput { s.ResourceDetails = v return s }
go
{ "resource": "" }
q396
SetTagOptionDetails
train
func (s *ListTagOptionsOutput) SetTagOptionDetails(v []*TagOptionDetail) *ListTagOptionsOutput { s.TagOptionDetails = v return s }
go
{ "resource": "" }
q397
SetApproximateCount
train
func (s *ProductViewAggregationValue) SetApproximateCount(v int64) *ProductViewAggregationValue { s.ApproximateCount = &v return s }
go
{ "resource": "" }
q398
SetProductARN
train
func (s *ProductViewDetail) SetProductARN(v string) *ProductViewDetail { s.ProductARN = &v return s }
go
{ "resource": "" }
q399
SetHasDefaultPath
train
func (s *ProductViewSummary) SetHasDefaultPath(v bool) *ProductViewSummary { s.HasDefaultPath = &v return s }
go
{ "resource": "" }