_id
stringlengths 2
7
| title
stringlengths 1
118
| partition
stringclasses 3
values | text
stringlengths 52
85.5k
| language
stringclasses 1
value | meta_information
dict |
---|---|---|---|---|---|
q400
|
SetProvisionToken
|
train
|
func (s *ProvisionProductInput) SetProvisionToken(v string) *ProvisionProductInput {
s.ProvisionToken = &v
return s
}
|
go
|
{
"resource": ""
}
|
q401
|
SetPhysicalId
|
train
|
func (s *ProvisionedProductAttribute) SetPhysicalId(v string) *ProvisionedProductAttribute {
s.PhysicalId = &v
return s
}
|
go
|
{
"resource": ""
}
|
q402
|
SetUserArnSession
|
train
|
func (s *ProvisionedProductAttribute) SetUserArnSession(v string) *ProvisionedProductAttribute {
s.UserArnSession = &v
return s
}
|
go
|
{
"resource": ""
}
|
q403
|
SetIsNoEcho
|
train
|
func (s *ProvisioningArtifactParameter) SetIsNoEcho(v bool) *ProvisioningArtifactParameter {
s.IsNoEcho = &v
return s
}
|
go
|
{
"resource": ""
}
|
q404
|
SetDisableTemplateValidation
|
train
|
func (s *ProvisioningArtifactProperties) SetDisableTemplateValidation(v bool) *ProvisioningArtifactProperties {
s.DisableTemplateValidation = &v
return s
}
|
go
|
{
"resource": ""
}
|
q405
|
SetProvisioningArtifactMetadata
|
train
|
func (s *ProvisioningArtifactSummary) SetProvisioningArtifactMetadata(v map[string]*string) *ProvisioningArtifactSummary {
s.ProvisioningArtifactMetadata = v
return s
}
|
go
|
{
"resource": ""
}
|
q406
|
SetProvisioningArtifact
|
train
|
func (s *ProvisioningArtifactView) SetProvisioningArtifact(v *ProvisioningArtifact) *ProvisioningArtifactView {
s.ProvisioningArtifact = v
return s
}
|
go
|
{
"resource": ""
}
|
q407
|
SetProvisionedProductType
|
train
|
func (s *RecordDetail) SetProvisionedProductType(v string) *RecordDetail {
s.ProvisionedProductType = &v
return s
}
|
go
|
{
"resource": ""
}
|
q408
|
SetRecordErrors
|
train
|
func (s *RecordDetail) SetRecordErrors(v []*RecordError) *RecordDetail {
s.RecordErrors = v
return s
}
|
go
|
{
"resource": ""
}
|
q409
|
SetRecordTags
|
train
|
func (s *RecordDetail) SetRecordTags(v []*RecordTag) *RecordDetail {
s.RecordTags = v
return s
}
|
go
|
{
"resource": ""
}
|
q410
|
SetReplacement
|
train
|
func (s *ResourceChange) SetReplacement(v string) *ResourceChange {
s.Replacement = &v
return s
}
|
go
|
{
"resource": ""
}
|
q411
|
SetCausingEntity
|
train
|
func (s *ResourceChangeDetail) SetCausingEntity(v string) *ResourceChangeDetail {
s.CausingEntity = &v
return s
}
|
go
|
{
"resource": ""
}
|
q412
|
SetEvaluation
|
train
|
func (s *ResourceChangeDetail) SetEvaluation(v string) *ResourceChangeDetail {
s.Evaluation = &v
return s
}
|
go
|
{
"resource": ""
}
|
q413
|
SetRequiresRecreation
|
train
|
func (s *ResourceTargetDefinition) SetRequiresRecreation(v string) *ResourceTargetDefinition {
s.RequiresRecreation = &v
return s
}
|
go
|
{
"resource": ""
}
|
q414
|
SetProductSource
|
train
|
func (s *SearchProductsAsAdminInput) SetProductSource(v string) *SearchProductsAsAdminInput {
s.ProductSource = &v
return s
}
|
go
|
{
"resource": ""
}
|
q415
|
SetProductViewDetails
|
train
|
func (s *SearchProductsAsAdminOutput) SetProductViewDetails(v []*ProductViewDetail) *SearchProductsAsAdminOutput {
s.ProductViewDetails = v
return s
}
|
go
|
{
"resource": ""
}
|
q416
|
SetProductViewAggregations
|
train
|
func (s *SearchProductsOutput) SetProductViewAggregations(v map[string][]*ProductViewAggregationValue) *SearchProductsOutput {
s.ProductViewAggregations = v
return s
}
|
go
|
{
"resource": ""
}
|
q417
|
SetProductViewSummaries
|
train
|
func (s *SearchProductsOutput) SetProductViewSummaries(v []*ProductViewSummary) *SearchProductsOutput {
s.ProductViewSummaries = v
return s
}
|
go
|
{
"resource": ""
}
|
q418
|
SetTotalResultsCount
|
train
|
func (s *SearchProvisionedProductsOutput) SetTotalResultsCount(v int64) *SearchProvisionedProductsOutput {
s.TotalResultsCount = &v
return s
}
|
go
|
{
"resource": ""
}
|
q419
|
SetServiceActionSummary
|
train
|
func (s *ServiceActionDetail) SetServiceActionSummary(v *ServiceActionSummary) *ServiceActionDetail {
s.ServiceActionSummary = v
return s
}
|
go
|
{
"resource": ""
}
|
q420
|
SetShareErrors
|
train
|
func (s *ShareDetails) SetShareErrors(v []*ShareError) *ShareDetails {
s.ShareErrors = v
return s
}
|
go
|
{
"resource": ""
}
|
q421
|
SetSuccessfulShares
|
train
|
func (s *ShareDetails) SetSuccessfulShares(v []*string) *ShareDetails {
s.SuccessfulShares = v
return s
}
|
go
|
{
"resource": ""
}
|
q422
|
SetTerminateToken
|
train
|
func (s *TerminateProvisionedProductInput) SetTerminateToken(v string) *TerminateProvisionedProductInput {
s.TerminateToken = &v
return s
}
|
go
|
{
"resource": ""
}
|
q423
|
SetUpdateToken
|
train
|
func (s *UpdateProvisionedProductInput) SetUpdateToken(v string) *UpdateProvisionedProductInput {
s.UpdateToken = &v
return s
}
|
go
|
{
"resource": ""
}
|
q424
|
SetStackSetOperationType
|
train
|
func (s *UpdateProvisioningPreferences) SetStackSetOperationType(v string) *UpdateProvisioningPreferences {
s.StackSetOperationType = &v
return s
}
|
go
|
{
"resource": ""
}
|
q425
|
andBuildKeyCondition
|
train
|
func andBuildKeyCondition(keyConditionBuilder KeyConditionBuilder, node exprNode) (exprNode, error) {
if len(keyConditionBuilder.keyConditionList) == 0 && len(keyConditionBuilder.operandList) == 0 {
return exprNode{}, newInvalidParameterError("andBuildKeyCondition", "KeyConditionBuilder")
}
// create a string with escaped characters to substitute them with proper
// aliases during runtime
node.fmtExpr = "($c) AND ($c)"
return node, nil
}
|
go
|
{
"resource": ""
}
|
q426
|
buildChildNodes
|
train
|
func (kcb KeyConditionBuilder) buildChildNodes() ([]exprNode, error) {
childNodes := make([]exprNode, 0, len(kcb.keyConditionList)+len(kcb.operandList))
for _, keyCondition := range kcb.keyConditionList {
node, err := keyCondition.buildTree()
if err != nil {
return []exprNode{}, err
}
childNodes = append(childNodes, node)
}
for _, operand := range kcb.operandList {
ope, err := operand.BuildOperand()
if err != nil {
return []exprNode{}, err
}
childNodes = append(childNodes, ope.exprNode)
}
return childNodes, nil
}
|
go
|
{
"resource": ""
}
|
q427
|
SetIconURL
|
train
|
func (s *Application) SetIconURL(v string) *Application {
s.IconURL = &v
return s
}
|
go
|
{
"resource": ""
}
|
q428
|
SetLaunchParameters
|
train
|
func (s *Application) SetLaunchParameters(v string) *Application {
s.LaunchParameters = &v
return s
}
|
go
|
{
"resource": ""
}
|
q429
|
SetDesired
|
train
|
func (s *ComputeCapacityStatus) SetDesired(v int64) *ComputeCapacityStatus {
s.Desired = &v
return s
}
|
go
|
{
"resource": ""
}
|
q430
|
SetInUse
|
train
|
func (s *ComputeCapacityStatus) SetInUse(v int64) *ComputeCapacityStatus {
s.InUse = &v
return s
}
|
go
|
{
"resource": ""
}
|
q431
|
SetRunning
|
train
|
func (s *ComputeCapacityStatus) SetRunning(v int64) *ComputeCapacityStatus {
s.Running = &v
return s
}
|
go
|
{
"resource": ""
}
|
q432
|
SetDestinationImageDescription
|
train
|
func (s *CopyImageInput) SetDestinationImageDescription(v string) *CopyImageInput {
s.DestinationImageDescription = &v
return s
}
|
go
|
{
"resource": ""
}
|
q433
|
SetSourceImageName
|
train
|
func (s *CopyImageInput) SetSourceImageName(v string) *CopyImageInput {
s.SourceImageName = &v
return s
}
|
go
|
{
"resource": ""
}
|
q434
|
SetSessionContext
|
train
|
func (s *CreateStreamingURLInput) SetSessionContext(v string) *CreateStreamingURLInput {
s.SessionContext = &v
return s
}
|
go
|
{
"resource": ""
}
|
q435
|
SetDirectoryNames
|
train
|
func (s *DescribeDirectoryConfigsInput) SetDirectoryNames(v []*string) *DescribeDirectoryConfigsInput {
s.DirectoryNames = v
return s
}
|
go
|
{
"resource": ""
}
|
q436
|
SetDirectoryConfigs
|
train
|
func (s *DescribeDirectoryConfigsOutput) SetDirectoryConfigs(v []*DirectoryConfig) *DescribeDirectoryConfigsOutput {
s.DirectoryConfigs = v
return s
}
|
go
|
{
"resource": ""
}
|
q437
|
SetFleets
|
train
|
func (s *DescribeFleetsOutput) SetFleets(v []*Fleet) *DescribeFleetsOutput {
s.Fleets = v
return s
}
|
go
|
{
"resource": ""
}
|
q438
|
SetImageBuilders
|
train
|
func (s *DescribeImageBuildersOutput) SetImageBuilders(v []*ImageBuilder) *DescribeImageBuildersOutput {
s.ImageBuilders = v
return s
}
|
go
|
{
"resource": ""
}
|
q439
|
SetSharedAwsAccountIds
|
train
|
func (s *DescribeImagePermissionsInput) SetSharedAwsAccountIds(v []*string) *DescribeImagePermissionsInput {
s.SharedAwsAccountIds = v
return s
}
|
go
|
{
"resource": ""
}
|
q440
|
SetSharedImagePermissionsList
|
train
|
func (s *DescribeImagePermissionsOutput) SetSharedImagePermissionsList(v []*SharedImagePermissions) *DescribeImagePermissionsOutput {
s.SharedImagePermissionsList = v
return s
}
|
go
|
{
"resource": ""
}
|
q441
|
SetArns
|
train
|
func (s *DescribeImagesInput) SetArns(v []*string) *DescribeImagesInput {
s.Arns = v
return s
}
|
go
|
{
"resource": ""
}
|
q442
|
SetSessions
|
train
|
func (s *DescribeSessionsOutput) SetSessions(v []*Session) *DescribeSessionsOutput {
s.Sessions = v
return s
}
|
go
|
{
"resource": ""
}
|
q443
|
SetComputeCapacityStatus
|
train
|
func (s *Fleet) SetComputeCapacityStatus(v *ComputeCapacityStatus) *Fleet {
s.ComputeCapacityStatus = v
return s
}
|
go
|
{
"resource": ""
}
|
q444
|
SetFleetErrors
|
train
|
func (s *Fleet) SetFleetErrors(v []*FleetError) *Fleet {
s.FleetErrors = v
return s
}
|
go
|
{
"resource": ""
}
|
q445
|
SetBaseImageArn
|
train
|
func (s *Image) SetBaseImageArn(v string) *Image {
s.BaseImageArn = &v
return s
}
|
go
|
{
"resource": ""
}
|
q446
|
SetImageBuilderSupported
|
train
|
func (s *Image) SetImageBuilderSupported(v bool) *Image {
s.ImageBuilderSupported = &v
return s
}
|
go
|
{
"resource": ""
}
|
q447
|
SetPublicBaseImageReleasedDate
|
train
|
func (s *Image) SetPublicBaseImageReleasedDate(v time.Time) *Image {
s.PublicBaseImageReleasedDate = &v
return s
}
|
go
|
{
"resource": ""
}
|
q448
|
SetImageBuilderErrors
|
train
|
func (s *ImageBuilder) SetImageBuilderErrors(v []*ResourceError) *ImageBuilder {
s.ImageBuilderErrors = v
return s
}
|
go
|
{
"resource": ""
}
|
q449
|
SetAllowFleet
|
train
|
func (s *ImagePermissions) SetAllowFleet(v bool) *ImagePermissions {
s.AllowFleet = &v
return s
}
|
go
|
{
"resource": ""
}
|
q450
|
SetAllowImageBuilder
|
train
|
func (s *ImagePermissions) SetAllowImageBuilder(v bool) *ImagePermissions {
s.AllowImageBuilder = &v
return s
}
|
go
|
{
"resource": ""
}
|
q451
|
SetEniPrivateIpAddress
|
train
|
func (s *NetworkAccessConfiguration) SetEniPrivateIpAddress(v string) *NetworkAccessConfiguration {
s.EniPrivateIpAddress = &v
return s
}
|
go
|
{
"resource": ""
}
|
q452
|
SetErrorTimestamp
|
train
|
func (s *ResourceError) SetErrorTimestamp(v time.Time) *ResourceError {
s.ErrorTimestamp = &v
return s
}
|
go
|
{
"resource": ""
}
|
q453
|
SetAccountPassword
|
train
|
func (s *ServiceAccountCredentials) SetAccountPassword(v string) *ServiceAccountCredentials {
s.AccountPassword = &v
return s
}
|
go
|
{
"resource": ""
}
|
q454
|
SetMaxExpirationTime
|
train
|
func (s *Session) SetMaxExpirationTime(v time.Time) *Session {
s.MaxExpirationTime = &v
return s
}
|
go
|
{
"resource": ""
}
|
q455
|
SetNetworkAccessConfiguration
|
train
|
func (s *Session) SetNetworkAccessConfiguration(v *NetworkAccessConfiguration) *Session {
s.NetworkAccessConfiguration = v
return s
}
|
go
|
{
"resource": ""
}
|
q456
|
SetStackErrors
|
train
|
func (s *Stack) SetStackErrors(v []*StackError) *Stack {
s.StackErrors = v
return s
}
|
go
|
{
"resource": ""
}
|
q457
|
SetConnectorType
|
train
|
func (s *StorageConnector) SetConnectorType(v string) *StorageConnector {
s.ConnectorType = &v
return s
}
|
go
|
{
"resource": ""
}
|
q458
|
SetDeleteVpcConfig
|
train
|
func (s *UpdateFleetInput) SetDeleteVpcConfig(v bool) *UpdateFleetInput {
s.DeleteVpcConfig = &v
return s
}
|
go
|
{
"resource": ""
}
|
q459
|
SetDeleteStorageConnectors
|
train
|
func (s *UpdateStackInput) SetDeleteStorageConnectors(v bool) *UpdateStackInput {
s.DeleteStorageConnectors = &v
return s
}
|
go
|
{
"resource": ""
}
|
q460
|
SetSendEmailNotification
|
train
|
func (s *UserStackAssociation) SetSendEmailNotification(v bool) *UserStackAssociation {
s.SendEmailNotification = &v
return s
}
|
go
|
{
"resource": ""
}
|
q461
|
SetUserStackAssociation
|
train
|
func (s *UserStackAssociationError) SetUserStackAssociation(v *UserStackAssociation) *UserStackAssociationError {
s.UserStackAssociation = v
return s
}
|
go
|
{
"resource": ""
}
|
q462
|
SetGroupIdentifiers
|
train
|
func (s *ListGroupsOutput) SetGroupIdentifiers(v []*GroupIdentifier) *ListGroupsOutput {
s.GroupIdentifiers = v
return s
}
|
go
|
{
"resource": ""
}
|
q463
|
NewEncoder
|
train
|
func NewEncoder(w io.Writer) *Encoder {
return &Encoder{
w: w,
headersBuf: bytes.NewBuffer(nil),
}
}
|
go
|
{
"resource": ""
}
|
q464
|
Encode
|
train
|
func (e *Encoder) Encode(msg Message) error {
e.headersBuf.Reset()
err := encodeHeaders(e.headersBuf, msg.Headers)
if err != nil {
return err
}
crc := crc32.New(crc32IEEETable)
hashWriter := io.MultiWriter(e.w, crc)
headersLen := uint32(e.headersBuf.Len())
payloadLen := uint32(len(msg.Payload))
if err := encodePrelude(hashWriter, crc, headersLen, payloadLen); err != nil {
return err
}
if headersLen > 0 {
if _, err := io.Copy(hashWriter, e.headersBuf); err != nil {
return err
}
}
if payloadLen > 0 {
if _, err := hashWriter.Write(msg.Payload); err != nil {
return err
}
}
msgCRC := crc.Sum32()
return binary.Write(e.w, binary.BigEndian, msgCRC)
}
|
go
|
{
"resource": ""
}
|
q465
|
NewBatchError
|
train
|
func NewBatchError(code, message string, err []Error) awserr.Error {
return &BatchError{
Errors: err,
code: code,
message: message,
}
}
|
go
|
{
"resource": ""
}
|
q466
|
NewDeleteListIterator
|
train
|
func NewDeleteListIterator(svc s3iface.S3API, input *s3.ListObjectsInput, opts ...func(*DeleteListIterator)) BatchDeleteIterator {
iter := &DeleteListIterator{
Bucket: input.Bucket,
Paginator: request.Pagination{
NewRequest: func() (*request.Request, error) {
var inCpy *s3.ListObjectsInput
if input != nil {
tmp := *input
inCpy = &tmp
}
req, _ := svc.ListObjectsRequest(inCpy)
return req, nil
},
},
}
for _, opt := range opts {
opt(iter)
}
return iter
}
|
go
|
{
"resource": ""
}
|
q467
|
DeleteObject
|
train
|
func (iter *DeleteObjectsIterator) DeleteObject() BatchDeleteObject {
object := iter.Objects[iter.index]
return object
}
|
go
|
{
"resource": ""
}
|
q468
|
Delete
|
train
|
func (d *BatchDelete) Delete(ctx aws.Context, iter BatchDeleteIterator) error {
var errs []Error
objects := []BatchDeleteObject{}
var input *s3.DeleteObjectsInput
for iter.Next() {
o := iter.DeleteObject()
if input == nil {
input = initDeleteObjectsInput(o.Object)
}
parity := hasParity(input, o)
if parity {
input.Delete.Objects = append(input.Delete.Objects, &s3.ObjectIdentifier{
Key: o.Object.Key,
VersionId: o.Object.VersionId,
})
objects = append(objects, o)
}
if len(input.Delete.Objects) == d.BatchSize || !parity {
if err := deleteBatch(ctx, d, input, objects); err != nil {
errs = append(errs, err...)
}
objects = objects[:0]
input = nil
if !parity {
objects = append(objects, o)
input = initDeleteObjectsInput(o.Object)
input.Delete.Objects = append(input.Delete.Objects, &s3.ObjectIdentifier{
Key: o.Object.Key,
VersionId: o.Object.VersionId,
})
}
}
}
// iter.Next() could return false (above) plus populate iter.Err()
if iter.Err() != nil {
errs = append(errs, newError(iter.Err(), nil, nil))
}
if input != nil && len(input.Delete.Objects) > 0 {
if err := deleteBatch(ctx, d, input, objects); err != nil {
errs = append(errs, err...)
}
}
if len(errs) > 0 {
return NewBatchError("BatchedDeleteIncomplete", "some objects have failed to be deleted.", errs)
}
return nil
}
|
go
|
{
"resource": ""
}
|
q469
|
deleteBatch
|
train
|
func deleteBatch(ctx aws.Context, d *BatchDelete, input *s3.DeleteObjectsInput, objects []BatchDeleteObject) []Error {
errs := []Error{}
if result, err := d.Client.DeleteObjectsWithContext(ctx, input); err != nil {
for i := 0; i < len(input.Delete.Objects); i++ {
errs = append(errs, newError(err, input.Bucket, input.Delete.Objects[i].Key))
}
} else if len(result.Errors) > 0 {
for i := 0; i < len(result.Errors); i++ {
code := ErrDeleteBatchFailCode
msg := errDefaultDeleteBatchMessage
if result.Errors[i].Message != nil {
msg = *result.Errors[i].Message
}
if result.Errors[i].Code != nil {
code = *result.Errors[i].Code
}
errs = append(errs, newError(awserr.New(code, msg, err), input.Bucket, result.Errors[i].Key))
}
}
for _, object := range objects {
if object.After == nil {
continue
}
if err := object.After(); err != nil {
errs = append(errs, newError(err, object.Object.Bucket, object.Object.Key))
}
}
return errs
}
|
go
|
{
"resource": ""
}
|
q470
|
DownloadObject
|
train
|
func (batcher *DownloadObjectsIterator) DownloadObject() BatchDownloadObject {
object := batcher.Objects[batcher.index]
return object
}
|
go
|
{
"resource": ""
}
|
q471
|
UploadObject
|
train
|
func (batcher *UploadObjectsIterator) UploadObject() BatchUploadObject {
object := batcher.Objects[batcher.index]
return object
}
|
go
|
{
"resource": ""
}
|
q472
|
SetMountTargets
|
train
|
func (s *DescribeMountTargetsOutput) SetMountTargets(v []*MountTargetDescription) *DescribeMountTargetsOutput {
s.MountTargets = v
return s
}
|
go
|
{
"resource": ""
}
|
q473
|
SetValueInIA
|
train
|
func (s *FileSystemSize) SetValueInIA(v int64) *FileSystemSize {
s.ValueInIA = &v
return s
}
|
go
|
{
"resource": ""
}
|
q474
|
SetValueInStandard
|
train
|
func (s *FileSystemSize) SetValueInStandard(v int64) *FileSystemSize {
s.ValueInStandard = &v
return s
}
|
go
|
{
"resource": ""
}
|
q475
|
SetTransitionToIA
|
train
|
func (s *LifecyclePolicy) SetTransitionToIA(v string) *LifecyclePolicy {
s.TransitionToIA = &v
return s
}
|
go
|
{
"resource": ""
}
|
q476
|
SetStartSelector
|
train
|
func (s *GetMediaInput) SetStartSelector(v *StartSelector) *GetMediaInput {
s.StartSelector = v
return s
}
|
go
|
{
"resource": ""
}
|
q477
|
SetAfterFragmentNumber
|
train
|
func (s *StartSelector) SetAfterFragmentNumber(v string) *StartSelector {
s.AfterFragmentNumber = &v
return s
}
|
go
|
{
"resource": ""
}
|
q478
|
SetStartSelectorType
|
train
|
func (s *StartSelector) SetStartSelectorType(v string) *StartSelector {
s.StartSelectorType = &v
return s
}
|
go
|
{
"resource": ""
}
|
q479
|
ValidateEndpointHost
|
train
|
func ValidateEndpointHost(opName, host string) error {
paramErrs := request.ErrInvalidParams{Context: opName}
labels := strings.Split(host, ".")
for i, label := range labels {
if i == len(labels)-1 && len(label) == 0 {
// Allow trailing dot for FQDN hosts.
continue
}
if !ValidHostLabel(label) {
paramErrs.Add(request.NewErrParamFormat(
"endpoint host label", "[a-zA-Z0-9-]{1,63}", label))
}
}
if len(host) > 255 {
paramErrs.Add(request.NewErrParamMaxLen(
"endpoint host", 255, host,
))
}
if paramErrs.Len() > 0 {
return paramErrs
}
return nil
}
|
go
|
{
"resource": ""
}
|
q480
|
ValidHostLabel
|
train
|
func ValidHostLabel(label string) bool {
if l := len(label); l == 0 || l > 63 {
return false
}
for _, r := range label {
switch {
case r >= '0' && r <= '9':
case r >= 'A' && r <= 'Z':
case r >= 'a' && r <= 'z':
case r == '-':
default:
return false
}
}
return true
}
|
go
|
{
"resource": ""
}
|
q481
|
SetExpiryTime
|
train
|
func (s *AddAttachmentsToSetOutput) SetExpiryTime(v string) *AddAttachmentsToSetOutput {
s.ExpiryTime = &v
return s
}
|
go
|
{
"resource": ""
}
|
q482
|
SetRecentCommunications
|
train
|
func (s *CaseDetails) SetRecentCommunications(v *RecentCaseCommunications) *CaseDetails {
s.RecentCommunications = v
return s
}
|
go
|
{
"resource": ""
}
|
q483
|
SetAttachmentSet
|
train
|
func (s *Communication) SetAttachmentSet(v []*AttachmentDetails) *Communication {
s.AttachmentSet = v
return s
}
|
go
|
{
"resource": ""
}
|
q484
|
SetIssueType
|
train
|
func (s *CreateCaseInput) SetIssueType(v string) *CreateCaseInput {
s.IssueType = &v
return s
}
|
go
|
{
"resource": ""
}
|
q485
|
SetAttachment
|
train
|
func (s *DescribeAttachmentOutput) SetAttachment(v *Attachment) *DescribeAttachmentOutput {
s.Attachment = v
return s
}
|
go
|
{
"resource": ""
}
|
q486
|
SetCaseIdList
|
train
|
func (s *DescribeCasesInput) SetCaseIdList(v []*string) *DescribeCasesInput {
s.CaseIdList = v
return s
}
|
go
|
{
"resource": ""
}
|
q487
|
SetIncludeCommunications
|
train
|
func (s *DescribeCasesInput) SetIncludeCommunications(v bool) *DescribeCasesInput {
s.IncludeCommunications = &v
return s
}
|
go
|
{
"resource": ""
}
|
q488
|
SetIncludeResolvedCases
|
train
|
func (s *DescribeCasesInput) SetIncludeResolvedCases(v bool) *DescribeCasesInput {
s.IncludeResolvedCases = &v
return s
}
|
go
|
{
"resource": ""
}
|
q489
|
SetCases
|
train
|
func (s *DescribeCasesOutput) SetCases(v []*CaseDetails) *DescribeCasesOutput {
s.Cases = v
return s
}
|
go
|
{
"resource": ""
}
|
q490
|
SetServiceCodeList
|
train
|
func (s *DescribeServicesInput) SetServiceCodeList(v []*string) *DescribeServicesInput {
s.ServiceCodeList = v
return s
}
|
go
|
{
"resource": ""
}
|
q491
|
SetSeverityLevels
|
train
|
func (s *DescribeSeverityLevelsOutput) SetSeverityLevels(v []*SeverityLevel) *DescribeSeverityLevelsOutput {
s.SeverityLevels = v
return s
}
|
go
|
{
"resource": ""
}
|
q492
|
SetStatuses
|
train
|
func (s *DescribeTrustedAdvisorCheckRefreshStatusesOutput) SetStatuses(v []*TrustedAdvisorCheckRefreshStatus) *DescribeTrustedAdvisorCheckRefreshStatusesOutput {
s.Statuses = v
return s
}
|
go
|
{
"resource": ""
}
|
q493
|
SetChecks
|
train
|
func (s *DescribeTrustedAdvisorChecksOutput) SetChecks(v []*TrustedAdvisorCheckDescription) *DescribeTrustedAdvisorChecksOutput {
s.Checks = v
return s
}
|
go
|
{
"resource": ""
}
|
q494
|
SetFinalCaseStatus
|
train
|
func (s *ResolveCaseOutput) SetFinalCaseStatus(v string) *ResolveCaseOutput {
s.FinalCaseStatus = &v
return s
}
|
go
|
{
"resource": ""
}
|
q495
|
SetInitialCaseStatus
|
train
|
func (s *ResolveCaseOutput) SetInitialCaseStatus(v string) *ResolveCaseOutput {
s.InitialCaseStatus = &v
return s
}
|
go
|
{
"resource": ""
}
|
q496
|
SetCategories
|
train
|
func (s *Service) SetCategories(v []*Category) *Service {
s.Categories = v
return s
}
|
go
|
{
"resource": ""
}
|
q497
|
SetCostOptimizing
|
train
|
func (s *TrustedAdvisorCategorySpecificSummary) SetCostOptimizing(v *TrustedAdvisorCostOptimizingSummary) *TrustedAdvisorCategorySpecificSummary {
s.CostOptimizing = v
return s
}
|
go
|
{
"resource": ""
}
|
q498
|
SetMillisUntilNextRefreshable
|
train
|
func (s *TrustedAdvisorCheckRefreshStatus) SetMillisUntilNextRefreshable(v int64) *TrustedAdvisorCheckRefreshStatus {
s.MillisUntilNextRefreshable = &v
return s
}
|
go
|
{
"resource": ""
}
|
q499
|
SetFlaggedResources
|
train
|
func (s *TrustedAdvisorCheckResult) SetFlaggedResources(v []*TrustedAdvisorResourceDetail) *TrustedAdvisorCheckResult {
s.FlaggedResources = v
return s
}
|
go
|
{
"resource": ""
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.