_id
stringlengths
2
7
title
stringlengths
1
118
partition
stringclasses
3 values
text
stringlengths
52
85.5k
language
stringclasses
1 value
meta_information
dict
q2900
SetObjectAttributeKey
train
func (s *ObjectAttributeUpdate) SetObjectAttributeKey(v *AttributeKey) *ObjectAttributeUpdate { s.ObjectAttributeKey = v return s }
go
{ "resource": "" }
q2901
SetDatetimeValue
train
func (s *TypedAttributeValue) SetDatetimeValue(v time.Time) *TypedAttributeValue { s.DatetimeValue = &v return s }
go
{ "resource": "" }
q2902
SetEndMode
train
func (s *TypedAttributeValueRange) SetEndMode(v string) *TypedAttributeValueRange { s.EndMode = &v return s }
go
{ "resource": "" }
q2903
SetEndValue
train
func (s *TypedAttributeValueRange) SetEndValue(v *TypedAttributeValue) *TypedAttributeValueRange { s.EndValue = v return s }
go
{ "resource": "" }
q2904
SetStartMode
train
func (s *TypedAttributeValueRange) SetStartMode(v string) *TypedAttributeValueRange { s.StartMode = &v return s }
go
{ "resource": "" }
q2905
SetStartValue
train
func (s *TypedAttributeValueRange) SetStartValue(v *TypedAttributeValue) *TypedAttributeValueRange { s.StartValue = v return s }
go
{ "resource": "" }
q2906
SetTypedLinkName
train
func (s *TypedLinkSchemaAndFacetName) SetTypedLinkName(v string) *TypedLinkSchemaAndFacetName { s.TypedLinkName = &v return s }
go
{ "resource": "" }
q2907
SetIdentityAttributeValues
train
func (s *TypedLinkSpecifier) SetIdentityAttributeValues(v []*AttributeNameAndValue) *TypedLinkSpecifier { s.IdentityAttributeValues = v return s }
go
{ "resource": "" }
q2908
Set
train
func (hs *Headers) Set(name string, value Value) { var i int for ; i < len(*hs); i++ { if (*hs)[i].Name == name { (*hs)[i].Value = value return } } *hs = append(*hs, Header{ Name: name, Value: value, }) }
go
{ "resource": "" }
q2909
Get
train
func (hs Headers) Get(name string) Value { for i := 0; i < len(hs); i++ { if h := hs[i]; h.Name == name { return h.Value } } return nil }
go
{ "resource": "" }
q2910
Del
train
func (hs *Headers) Del(name string) { for i := 0; i < len(*hs); i++ { if (*hs)[i].Name == name { copy((*hs)[i:], (*hs)[i+1:]) (*hs) = (*hs)[:len(*hs)-1] } } }
go
{ "resource": "" }
q2911
ValuesAtPath
train
func ValuesAtPath(i interface{}, path string) ([]interface{}, error) { result, err := jmespath.Search(path, i) if err != nil { return nil, err } v := reflect.ValueOf(result) if !v.IsValid() || (v.Kind() == reflect.Ptr && v.IsNil()) { return nil, nil } if s, ok := result.([]interface{}); ok { return s, err } if v.Kind() == reflect.Map && v.Len() == 0 { return nil, nil } if v.Kind() == reflect.Slice { out := make([]interface{}, v.Len()) for i := 0; i < v.Len(); i++ { out[i] = v.Index(i).Interface() } return out, nil } return []interface{}{result}, nil }
go
{ "resource": "" }
q2912
SetValueAtPath
train
func SetValueAtPath(i interface{}, path string, v interface{}) { if rvals := rValuesAtPath(i, path, true, false, v == nil); rvals != nil { for _, rval := range rvals { if rval.Kind() == reflect.Ptr && rval.IsNil() { continue } setValue(rval, v) } } }
go
{ "resource": "" }
q2913
Tokenize
train
func (l *iniLexer) Tokenize(r io.Reader) ([]Token, error) { b, err := ioutil.ReadAll(r) if err != nil { return nil, awserr.New(ErrCodeUnableToReadFile, "unable to read file", err) } return l.tokenize(b) }
go
{ "resource": "" }
q2914
GetLogGroupFields
train
func (c *CloudWatchLogs) GetLogGroupFields(input *GetLogGroupFieldsInput) (*GetLogGroupFieldsOutput, error) { req, out := c.GetLogGroupFieldsRequest(input) return out, req.Send() }
go
{ "resource": "" }
q2915
SetDestinationNamePrefix
train
func (s *DescribeDestinationsInput) SetDestinationNamePrefix(v string) *DescribeDestinationsInput { s.DestinationNamePrefix = &v return s }
go
{ "resource": "" }
q2916
SetExportTasks
train
func (s *DescribeExportTasksOutput) SetExportTasks(v []*ExportTask) *DescribeExportTasksOutput { s.ExportTasks = v return s }
go
{ "resource": "" }
q2917
SetLogGroupNamePrefix
train
func (s *DescribeLogGroupsInput) SetLogGroupNamePrefix(v string) *DescribeLogGroupsInput { s.LogGroupNamePrefix = &v return s }
go
{ "resource": "" }
q2918
SetLogGroups
train
func (s *DescribeLogGroupsOutput) SetLogGroups(v []*LogGroup) *DescribeLogGroupsOutput { s.LogGroups = v return s }
go
{ "resource": "" }
q2919
SetDescending
train
func (s *DescribeLogStreamsInput) SetDescending(v bool) *DescribeLogStreamsInput { s.Descending = &v return s }
go
{ "resource": "" }
q2920
SetMetricFilters
train
func (s *DescribeMetricFiltersOutput) SetMetricFilters(v []*MetricFilter) *DescribeMetricFiltersOutput { s.MetricFilters = v return s }
go
{ "resource": "" }
q2921
SetQueries
train
func (s *DescribeQueriesOutput) SetQueries(v []*QueryInfo) *DescribeQueriesOutput { s.Queries = v return s }
go
{ "resource": "" }
q2922
SetResourcePolicies
train
func (s *DescribeResourcePoliciesOutput) SetResourcePolicies(v []*ResourcePolicy) *DescribeResourcePoliciesOutput { s.ResourcePolicies = v return s }
go
{ "resource": "" }
q2923
SetSubscriptionFilters
train
func (s *DescribeSubscriptionFiltersOutput) SetSubscriptionFilters(v []*SubscriptionFilter) *DescribeSubscriptionFiltersOutput { s.SubscriptionFilters = v return s }
go
{ "resource": "" }
q2924
SetInterleaved
train
func (s *FilterLogEventsInput) SetInterleaved(v bool) *FilterLogEventsInput { s.Interleaved = &v return s }
go
{ "resource": "" }
q2925
SetLogStreamNames
train
func (s *FilterLogEventsInput) SetLogStreamNames(v []*string) *FilterLogEventsInput { s.LogStreamNames = v return s }
go
{ "resource": "" }
q2926
SetSearchedLogStreams
train
func (s *FilterLogEventsOutput) SetSearchedLogStreams(v []*SearchedLogStream) *FilterLogEventsOutput { s.SearchedLogStreams = v return s }
go
{ "resource": "" }
q2927
SetLogGroupFields
train
func (s *GetLogGroupFieldsOutput) SetLogGroupFields(v []*LogGroupField) *GetLogGroupFieldsOutput { s.LogGroupFields = v return s }
go
{ "resource": "" }
q2928
SetLogRecordPointer
train
func (s *GetLogRecordInput) SetLogRecordPointer(v string) *GetLogRecordInput { s.LogRecordPointer = &v return s }
go
{ "resource": "" }
q2929
SetLogRecord
train
func (s *GetLogRecordOutput) SetLogRecord(v map[string]*string) *GetLogRecordOutput { s.LogRecord = v return s }
go
{ "resource": "" }
q2930
SetMetricFilterCount
train
func (s *LogGroup) SetMetricFilterCount(v int64) *LogGroup { s.MetricFilterCount = &v return s }
go
{ "resource": "" }
q2931
SetPercent
train
func (s *LogGroupField) SetPercent(v int64) *LogGroupField { s.Percent = &v return s }
go
{ "resource": "" }
q2932
SetFirstEventTimestamp
train
func (s *LogStream) SetFirstEventTimestamp(v int64) *LogStream { s.FirstEventTimestamp = &v return s }
go
{ "resource": "" }
q2933
SetLastEventTimestamp
train
func (s *LogStream) SetLastEventTimestamp(v int64) *LogStream { s.LastEventTimestamp = &v return s }
go
{ "resource": "" }
q2934
SetLastIngestionTime
train
func (s *LogStream) SetLastIngestionTime(v int64) *LogStream { s.LastIngestionTime = &v return s }
go
{ "resource": "" }
q2935
SetUploadSequenceToken
train
func (s *LogStream) SetUploadSequenceToken(v string) *LogStream { s.UploadSequenceToken = &v return s }
go
{ "resource": "" }
q2936
SetEventMessage
train
func (s *MetricFilterMatchRecord) SetEventMessage(v string) *MetricFilterMatchRecord { s.EventMessage = &v return s }
go
{ "resource": "" }
q2937
SetEventNumber
train
func (s *MetricFilterMatchRecord) SetEventNumber(v int64) *MetricFilterMatchRecord { s.EventNumber = &v return s }
go
{ "resource": "" }
q2938
SetExtractedValues
train
func (s *MetricFilterMatchRecord) SetExtractedValues(v map[string]*string) *MetricFilterMatchRecord { s.ExtractedValues = v return s }
go
{ "resource": "" }
q2939
SetLogEvents
train
func (s *PutLogEventsInput) SetLogEvents(v []*InputLogEvent) *PutLogEventsInput { s.LogEvents = v return s }
go
{ "resource": "" }
q2940
SetSequenceToken
train
func (s *PutLogEventsInput) SetSequenceToken(v string) *PutLogEventsInput { s.SequenceToken = &v return s }
go
{ "resource": "" }
q2941
SetNextSequenceToken
train
func (s *PutLogEventsOutput) SetNextSequenceToken(v string) *PutLogEventsOutput { s.NextSequenceToken = &v return s }
go
{ "resource": "" }
q2942
SetRejectedLogEventsInfo
train
func (s *PutLogEventsOutput) SetRejectedLogEventsInfo(v *RejectedLogEventsInfo) *PutLogEventsOutput { s.RejectedLogEventsInfo = v return s }
go
{ "resource": "" }
q2943
SetEndCharOffset
train
func (s *QueryCompileErrorLocation) SetEndCharOffset(v int64) *QueryCompileErrorLocation { s.EndCharOffset = &v return s }
go
{ "resource": "" }
q2944
SetStartCharOffset
train
func (s *QueryCompileErrorLocation) SetStartCharOffset(v int64) *QueryCompileErrorLocation { s.StartCharOffset = &v return s }
go
{ "resource": "" }
q2945
SetRecordsMatched
train
func (s *QueryStatistics) SetRecordsMatched(v float64) *QueryStatistics { s.RecordsMatched = &v return s }
go
{ "resource": "" }
q2946
SetRecordsScanned
train
func (s *QueryStatistics) SetRecordsScanned(v float64) *QueryStatistics { s.RecordsScanned = &v return s }
go
{ "resource": "" }
q2947
SetExpiredLogEventEndIndex
train
func (s *RejectedLogEventsInfo) SetExpiredLogEventEndIndex(v int64) *RejectedLogEventsInfo { s.ExpiredLogEventEndIndex = &v return s }
go
{ "resource": "" }
q2948
SetTooNewLogEventStartIndex
train
func (s *RejectedLogEventsInfo) SetTooNewLogEventStartIndex(v int64) *RejectedLogEventsInfo { s.TooNewLogEventStartIndex = &v return s }
go
{ "resource": "" }
q2949
SetTooOldLogEventEndIndex
train
func (s *RejectedLogEventsInfo) SetTooOldLogEventEndIndex(v int64) *RejectedLogEventsInfo { s.TooOldLogEventEndIndex = &v return s }
go
{ "resource": "" }
q2950
SetSearchedCompletely
train
func (s *SearchedLogStream) SetSearchedCompletely(v bool) *SearchedLogStream { s.SearchedCompletely = &v return s }
go
{ "resource": "" }
q2951
SetLogEventMessages
train
func (s *TestMetricFilterInput) SetLogEventMessages(v []*string) *TestMetricFilterInput { s.LogEventMessages = v return s }
go
{ "resource": "" }
q2952
SetMatches
train
func (s *TestMetricFilterOutput) SetMatches(v []*MetricFilterMatchRecord) *TestMetricFilterOutput { s.Matches = v return s }
go
{ "resource": "" }
q2953
Walk
train
func Walk(tree []AST, v Visitor) error { for _, node := range tree { switch node.Kind { case ASTKindExpr, ASTKindExprStatement: if err := v.VisitExpr(node); err != nil { return err } case ASTKindStatement, ASTKindCompletedSectionStatement, ASTKindNestedSectionStatement, ASTKindCompletedNestedSectionStatement: if err := v.VisitStatement(node); err != nil { return err } } } return nil }
go
{ "resource": "" }
q2954
SetEngineVersions
train
func (s *BrokerEngineType) SetEngineVersions(v []*EngineVersion) *BrokerEngineType { s.EngineVersions = v return s }
go
{ "resource": "" }
q2955
SetConsoleURL
train
func (s *BrokerInstance) SetConsoleURL(v string) *BrokerInstance { s.ConsoleURL = &v return s }
go
{ "resource": "" }
q2956
SetSupportedEngineVersions
train
func (s *BrokerInstanceOption) SetSupportedEngineVersions(v []*string) *BrokerInstanceOption { s.SupportedEngineVersions = v return s }
go
{ "resource": "" }
q2957
SetHistory
train
func (s *Configurations) SetHistory(v []*ConfigurationId) *Configurations { s.History = v return s }
go
{ "resource": "" }
q2958
SetBrokerEngineTypes
train
func (s *DescribeBrokerEngineTypesOutput) SetBrokerEngineTypes(v []*BrokerEngineType) *DescribeBrokerEngineTypesOutput { s.BrokerEngineTypes = v return s }
go
{ "resource": "" }
q2959
SetBrokerInstanceOptions
train
func (s *DescribeBrokerInstanceOptionsOutput) SetBrokerInstanceOptions(v []*BrokerInstanceOption) *DescribeBrokerInstanceOptionsOutput { s.BrokerInstanceOptions = v return s }
go
{ "resource": "" }
q2960
SetBrokerInstances
train
func (s *DescribeBrokerResponse) SetBrokerInstances(v []*BrokerInstance) *DescribeBrokerResponse { s.BrokerInstances = v return s }
go
{ "resource": "" }
q2961
SetPendingEngineVersion
train
func (s *DescribeBrokerResponse) SetPendingEngineVersion(v string) *DescribeBrokerResponse { s.PendingEngineVersion = &v return s }
go
{ "resource": "" }
q2962
SetBrokerSummaries
train
func (s *ListBrokersResponse) SetBrokerSummaries(v []*BrokerSummary) *ListBrokersResponse { s.BrokerSummaries = v return s }
go
{ "resource": "" }
q2963
SetAuditLogGroup
train
func (s *LogsSummary) SetAuditLogGroup(v string) *LogsSummary { s.AuditLogGroup = &v return s }
go
{ "resource": "" }
q2964
SetGeneralLogGroup
train
func (s *LogsSummary) SetGeneralLogGroup(v string) *LogsSummary { s.GeneralLogGroup = &v return s }
go
{ "resource": "" }
q2965
SetElementName
train
func (s *SanitizationWarning) SetElementName(v string) *SanitizationWarning { s.ElementName = &v return s }
go
{ "resource": "" }
q2966
SetTimeOfDay
train
func (s *WeeklyStartTime) SetTimeOfDay(v string) *WeeklyStartTime { s.TimeOfDay = &v return s }
go
{ "resource": "" }
q2967
SetAdSegmentUrlPrefix
train
func (s *CdnConfiguration) SetAdSegmentUrlPrefix(v string) *CdnConfiguration { s.AdSegmentUrlPrefix = &v return s }
go
{ "resource": "" }
q2968
SetContentSegmentUrlPrefix
train
func (s *CdnConfiguration) SetContentSegmentUrlPrefix(v string) *CdnConfiguration { s.ContentSegmentUrlPrefix = &v return s }
go
{ "resource": "" }
q2969
SetIncludeAdditionalLanguageCodes
train
func (s *DescribeVoicesInput) SetIncludeAdditionalLanguageCodes(v bool) *DescribeVoicesInput { s.IncludeAdditionalLanguageCodes = &v return s }
go
{ "resource": "" }
q2970
SetVoices
train
func (s *DescribeVoicesOutput) SetVoices(v []*Voice) *DescribeVoicesOutput { s.Voices = v return s }
go
{ "resource": "" }
q2971
SetLexicon
train
func (s *GetLexiconOutput) SetLexicon(v *Lexicon) *GetLexiconOutput { s.Lexicon = v return s }
go
{ "resource": "" }
q2972
SetLexiconAttributes
train
func (s *GetLexiconOutput) SetLexiconAttributes(v *LexiconAttributes) *GetLexiconOutput { s.LexiconAttributes = v return s }
go
{ "resource": "" }
q2973
SetAlphabet
train
func (s *LexiconAttributes) SetAlphabet(v string) *LexiconAttributes { s.Alphabet = &v return s }
go
{ "resource": "" }
q2974
SetLexemesCount
train
func (s *LexiconAttributes) SetLexemesCount(v int64) *LexiconAttributes { s.LexemesCount = &v return s }
go
{ "resource": "" }
q2975
SetLexiconArn
train
func (s *LexiconAttributes) SetLexiconArn(v string) *LexiconAttributes { s.LexiconArn = &v return s }
go
{ "resource": "" }
q2976
SetLexicons
train
func (s *ListLexiconsOutput) SetLexicons(v []*LexiconDescription) *ListLexiconsOutput { s.Lexicons = v return s }
go
{ "resource": "" }
q2977
SetSynthesisTasks
train
func (s *ListSpeechSynthesisTasksOutput) SetSynthesisTasks(v []*SynthesisTask) *ListSpeechSynthesisTasksOutput { s.SynthesisTasks = v return s }
go
{ "resource": "" }
q2978
SetTaskStatusReason
train
func (s *SynthesisTask) SetTaskStatusReason(v string) *SynthesisTask { s.TaskStatusReason = &v return s }
go
{ "resource": "" }
q2979
SetAdditionalLanguageCodes
train
func (s *Voice) SetAdditionalLanguageCodes(v []*string) *Voice { s.AdditionalLanguageCodes = v return s }
go
{ "resource": "" }
q2980
SetLanguageName
train
func (s *Voice) SetLanguageName(v string) *Voice { s.LanguageName = &v return s }
go
{ "resource": "" }
q2981
SetScalableTargets
train
func (s *DescribeScalableTargetsOutput) SetScalableTargets(v []*ScalableTarget) *DescribeScalableTargetsOutput { s.ScalableTargets = v return s }
go
{ "resource": "" }
q2982
SetScalingActivities
train
func (s *DescribeScalingActivitiesOutput) SetScalingActivities(v []*ScalingActivity) *DescribeScalingActivitiesOutput { s.ScalingActivities = v return s }
go
{ "resource": "" }
q2983
SetScheduledActions
train
func (s *DescribeScheduledActionsOutput) SetScheduledActions(v []*ScheduledAction) *DescribeScheduledActionsOutput { s.ScheduledActions = v return s }
go
{ "resource": "" }
q2984
SetS3DataSize
train
func (s *Backup) SetS3DataSize(v int64) *Backup { s.S3DataSize = &v return s }
go
{ "resource": "" }
q2985
SetS3DataUrl
train
func (s *Backup) SetS3DataUrl(v string) *Backup { s.S3DataUrl = &v return s }
go
{ "resource": "" }
q2986
SetS3LogUrl
train
func (s *Backup) SetS3LogUrl(v string) *Backup { s.S3LogUrl = &v return s }
go
{ "resource": "" }
q2987
SetStatusDescription
train
func (s *Backup) SetStatusDescription(v string) *Backup { s.StatusDescription = &v return s }
go
{ "resource": "" }
q2988
SetToolsVersion
train
func (s *Backup) SetToolsVersion(v string) *Backup { s.ToolsVersion = &v return s }
go
{ "resource": "" }
q2989
SetServerEvents
train
func (s *DescribeEventsOutput) SetServerEvents(v []*ServerEvent) *DescribeEventsOutput { s.ServerEvents = v return s }
go
{ "resource": "" }
q2990
SetNodeAssociationStatus
train
func (s *DescribeNodeAssociationStatusOutput) SetNodeAssociationStatus(v string) *DescribeNodeAssociationStatusOutput { s.NodeAssociationStatus = &v return s }
go
{ "resource": "" }
q2991
SetExportAttributeName
train
func (s *ExportServerEngineAttributeInput) SetExportAttributeName(v string) *ExportServerEngineAttributeInput { s.ExportAttributeName = &v return s }
go
{ "resource": "" }
q2992
SetInputAttributes
train
func (s *ExportServerEngineAttributeInput) SetInputAttributes(v []*EngineAttribute) *ExportServerEngineAttributeInput { s.InputAttributes = v return s }
go
{ "resource": "" }
q2993
SetEngineAttribute
train
func (s *ExportServerEngineAttributeOutput) SetEngineAttribute(v *EngineAttribute) *ExportServerEngineAttributeOutput { s.EngineAttribute = v return s }
go
{ "resource": "" }
q2994
SetCloudFormationStackArn
train
func (s *Server) SetCloudFormationStackArn(v string) *Server { s.CloudFormationStackArn = &v return s }
go
{ "resource": "" }
q2995
SetMaintenanceStatus
train
func (s *Server) SetMaintenanceStatus(v string) *Server { s.MaintenanceStatus = &v return s }
go
{ "resource": "" }
q2996
SetServerArn
train
func (s *Server) SetServerArn(v string) *Server { s.ServerArn = &v return s }
go
{ "resource": "" }
q2997
SetIamInstanceProfileArn
train
func (s *AwsEc2InstanceDetails) SetIamInstanceProfileArn(v string) *AwsEc2InstanceDetails { s.IamInstanceProfileArn = &v return s }
go
{ "resource": "" }
q2998
SetIpV4Addresses
train
func (s *AwsEc2InstanceDetails) SetIpV4Addresses(v []*string) *AwsEc2InstanceDetails { s.IpV4Addresses = v return s }
go
{ "resource": "" }
q2999
SetIpV6Addresses
train
func (s *AwsEc2InstanceDetails) SetIpV6Addresses(v []*string) *AwsEc2InstanceDetails { s.IpV6Addresses = v return s }
go
{ "resource": "" }