_id stringlengths 2 7 | title stringlengths 1 118 | partition stringclasses 3
values | text stringlengths 52 85.5k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
q2600 | SetDirectConnectGatewayState | train | func (s *Gateway) SetDirectConnectGatewayState(v string) *Gateway {
s.DirectConnectGatewayState = &v
return s
} | go | {
"resource": ""
} |
q2601 | SetAllowedPrefixesToDirectConnectGateway | train | func (s *GatewayAssociation) SetAllowedPrefixesToDirectConnectGateway(v []*RouteFilterPrefix) *GatewayAssociation {
s.AllowedPrefixesToDirectConnectGateway = v
return s
} | go | {
"resource": ""
} |
q2602 | SetAssociationState | train | func (s *GatewayAssociation) SetAssociationState(v string) *GatewayAssociation {
s.AssociationState = &v
return s
} | go | {
"resource": ""
} |
q2603 | SetVirtualGatewayOwnerAccount | train | func (s *GatewayAssociation) SetVirtualGatewayOwnerAccount(v string) *GatewayAssociation {
s.VirtualGatewayOwnerAccount = &v
return s
} | go | {
"resource": ""
} |
q2604 | SetVirtualGatewayRegion | train | func (s *GatewayAssociation) SetVirtualGatewayRegion(v string) *GatewayAssociation {
s.VirtualGatewayRegion = &v
return s
} | go | {
"resource": ""
} |
q2605 | SetExistingAllowedPrefixesToDirectConnectGateway | train | func (s *GatewayAssociationProposal) SetExistingAllowedPrefixesToDirectConnectGateway(v []*RouteFilterPrefix) *GatewayAssociationProposal {
s.ExistingAllowedPrefixesToDirectConnectGateway = v
return s
} | go | {
"resource": ""
} |
q2606 | SetProposalState | train | func (s *GatewayAssociationProposal) SetProposalState(v string) *GatewayAssociationProposal {
s.ProposalState = &v
return s
} | go | {
"resource": ""
} |
q2607 | SetRequestedAllowedPrefixesToDirectConnectGateway | train | func (s *GatewayAssociationProposal) SetRequestedAllowedPrefixesToDirectConnectGateway(v []*RouteFilterPrefix) *GatewayAssociationProposal {
s.RequestedAllowedPrefixesToDirectConnectGateway = v
return s
} | go | {
"resource": ""
} |
q2608 | SetAttachmentType | train | func (s *GatewayAttachment) SetAttachmentType(v string) *GatewayAttachment {
s.AttachmentType = &v
return s
} | go | {
"resource": ""
} |
q2609 | SetVirtualInterfaceOwnerAccount | train | func (s *GatewayAttachment) SetVirtualInterfaceOwnerAccount(v string) *GatewayAttachment {
s.VirtualInterfaceOwnerAccount = &v
return s
} | go | {
"resource": ""
} |
q2610 | SetVirtualInterfaceRegion | train | func (s *GatewayAttachment) SetVirtualInterfaceRegion(v string) *GatewayAttachment {
s.VirtualInterfaceRegion = &v
return s
} | go | {
"resource": ""
} |
q2611 | SetAllowsHostedConnections | train | func (s *Lag) SetAllowsHostedConnections(v bool) *Lag {
s.AllowsHostedConnections = &v
return s
} | go | {
"resource": ""
} |
q2612 | SetLagState | train | func (s *Lag) SetLagState(v string) *Lag {
s.LagState = &v
return s
} | go | {
"resource": ""
} |
q2613 | SetLoaContent | train | func (s *Loa) SetLoaContent(v []byte) *Loa {
s.LoaContent = v
return s
} | go | {
"resource": ""
} |
q2614 | SetAvailablePortSpeeds | train | func (s *Location) SetAvailablePortSpeeds(v []*string) *Location {
s.AvailablePortSpeeds = v
return s
} | go | {
"resource": ""
} |
q2615 | SetLocationCode | train | func (s *Location) SetLocationCode(v string) *Location {
s.LocationCode = &v
return s
} | go | {
"resource": ""
} |
q2616 | SetLocationName | train | func (s *Location) SetLocationName(v string) *Location {
s.LocationName = &v
return s
} | go | {
"resource": ""
} |
q2617 | SetVirtualGatewayState | train | func (s *VirtualGateway) SetVirtualGatewayState(v string) *VirtualGateway {
s.VirtualGatewayState = &v
return s
} | go | {
"resource": ""
} |
q2618 | NewXMLElement | train | func NewXMLElement(name xml.Name) *XMLNode {
return &XMLNode{
Name: name,
Children: map[string][]*XMLNode{},
Attr: []xml.Attr{},
}
} | go | {
"resource": ""
} |
q2619 | AddChild | train | func (n *XMLNode) AddChild(child *XMLNode) {
child.parent = n
if _, ok := n.Children[child.Name.Local]; !ok {
n.Children[child.Name.Local] = []*XMLNode{}
}
n.Children[child.Name.Local] = append(n.Children[child.Name.Local], child)
} | go | {
"resource": ""
} |
q2620 | XMLToStruct | train | func XMLToStruct(d *xml.Decoder, s *xml.StartElement) (*XMLNode, error) {
out := &XMLNode{}
for {
tok, err := d.Token()
if err != nil {
if err == io.EOF {
break
} else {
return out, err
}
}
if tok == nil {
break
}
switch typed := tok.(type) {
case xml.CharData:
out.Text = string... | go | {
"resource": ""
} |
q2621 | StructToXML | train | func StructToXML(e *xml.Encoder, node *XMLNode, sorted bool) error {
e.EncodeToken(xml.StartElement{Name: node.Name, Attr: node.Attr})
if node.Text != "" {
e.EncodeToken(xml.CharData([]byte(node.Text)))
} else if sorted {
sortedNames := []string{}
for k := range node.Children {
sortedNames = append(sortedN... | go | {
"resource": ""
} |
q2622 | SetAccountType | train | func (s *Account) SetAccountType(v string) *Account {
s.AccountType = &v
return s
} | go | {
"resource": ""
} |
q2623 | SetDefaultLicense | train | func (s *Account) SetDefaultLicense(v string) *Account {
s.DefaultLicense = &v
return s
} | go | {
"resource": ""
} |
q2624 | SetSupportedLicenses | train | func (s *Account) SetSupportedLicenses(v []*string) *Account {
s.SupportedLicenses = v
return s
} | go | {
"resource": ""
} |
q2625 | SetDisableRemoteControl | train | func (s *AccountSettings) SetDisableRemoteControl(v bool) *AccountSettings {
s.DisableRemoteControl = &v
return s
} | go | {
"resource": ""
} |
q2626 | SetEnableDialOut | train | func (s *AccountSettings) SetEnableDialOut(v bool) *AccountSettings {
s.EnableDialOut = &v
return s
} | go | {
"resource": ""
} |
q2627 | SetPhoneNumberIds | train | func (s *BatchDeletePhoneNumberInput) SetPhoneNumberIds(v []*string) *BatchDeletePhoneNumberInput {
s.PhoneNumberIds = v
return s
} | go | {
"resource": ""
} |
q2628 | SetUpdatePhoneNumberRequestItems | train | func (s *BatchUpdatePhoneNumberInput) SetUpdatePhoneNumberRequestItems(v []*UpdatePhoneNumberRequestItem) *BatchUpdatePhoneNumberInput {
s.UpdatePhoneNumberRequestItems = v
return s
} | go | {
"resource": ""
} |
q2629 | SetUpdateUserRequestItems | train | func (s *BatchUpdateUserInput) SetUpdateUserRequestItems(v []*UpdateUserRequestItem) *BatchUpdateUserInput {
s.UpdateUserRequestItems = v
return s
} | go | {
"resource": ""
} |
q2630 | SetTerminationHealth | train | func (s *GetVoiceConnectorTerminationHealthOutput) SetTerminationHealth(v *TerminationHealth) *GetVoiceConnectorTerminationHealthOutput {
s.TerminationHealth = v
return s
} | go | {
"resource": ""
} |
q2631 | SetEmailStatus | train | func (s *Invite) SetEmailStatus(v string) *Invite {
s.EmailStatus = &v
return s
} | go | {
"resource": ""
} |
q2632 | SetInviteId | train | func (s *Invite) SetInviteId(v string) *Invite {
s.InviteId = &v
return s
} | go | {
"resource": ""
} |
q2633 | SetUserEmailList | train | func (s *InviteUsersInput) SetUserEmailList(v []*string) *InviteUsersInput {
s.UserEmailList = v
return s
} | go | {
"resource": ""
} |
q2634 | SetInvites | train | func (s *InviteUsersOutput) SetInvites(v []*Invite) *InviteUsersOutput {
s.Invites = v
return s
} | go | {
"resource": ""
} |
q2635 | SetPhoneNumberOrders | train | func (s *ListPhoneNumberOrdersOutput) SetPhoneNumberOrders(v []*PhoneNumberOrder) *ListPhoneNumberOrdersOutput {
s.PhoneNumberOrders = v
return s
} | go | {
"resource": ""
} |
q2636 | SetFilterValue | train | func (s *ListPhoneNumbersInput) SetFilterValue(v string) *ListPhoneNumbersInput {
s.FilterValue = &v
return s
} | go | {
"resource": ""
} |
q2637 | SetVoiceConnectors | train | func (s *ListVoiceConnectorsOutput) SetVoiceConnectors(v []*VoiceConnector) *ListVoiceConnectorsOutput {
s.VoiceConnectors = v
return s
} | go | {
"resource": ""
} |
q2638 | SetDeletionTimestamp | train | func (s *PhoneNumber) SetDeletionTimestamp(v time.Time) *PhoneNumber {
s.DeletionTimestamp = &v
return s
} | go | {
"resource": ""
} |
q2639 | SetAssociatedTimestamp | train | func (s *PhoneNumberAssociation) SetAssociatedTimestamp(v time.Time) *PhoneNumberAssociation {
s.AssociatedTimestamp = &v
return s
} | go | {
"resource": ""
} |
q2640 | SetInboundCall | train | func (s *PhoneNumberCapabilities) SetInboundCall(v bool) *PhoneNumberCapabilities {
s.InboundCall = &v
return s
} | go | {
"resource": ""
} |
q2641 | SetInboundMMS | train | func (s *PhoneNumberCapabilities) SetInboundMMS(v bool) *PhoneNumberCapabilities {
s.InboundMMS = &v
return s
} | go | {
"resource": ""
} |
q2642 | SetInboundSMS | train | func (s *PhoneNumberCapabilities) SetInboundSMS(v bool) *PhoneNumberCapabilities {
s.InboundSMS = &v
return s
} | go | {
"resource": ""
} |
q2643 | SetOutboundCall | train | func (s *PhoneNumberCapabilities) SetOutboundCall(v bool) *PhoneNumberCapabilities {
s.OutboundCall = &v
return s
} | go | {
"resource": ""
} |
q2644 | SetOutboundMMS | train | func (s *PhoneNumberCapabilities) SetOutboundMMS(v bool) *PhoneNumberCapabilities {
s.OutboundMMS = &v
return s
} | go | {
"resource": ""
} |
q2645 | SetOutboundSMS | train | func (s *PhoneNumberCapabilities) SetOutboundSMS(v bool) *PhoneNumberCapabilities {
s.OutboundSMS = &v
return s
} | go | {
"resource": ""
} |
q2646 | SetOrderedPhoneNumbers | train | func (s *PhoneNumberOrder) SetOrderedPhoneNumbers(v []*OrderedPhoneNumber) *PhoneNumberOrder {
s.OrderedPhoneNumbers = v
return s
} | go | {
"resource": ""
} |
q2647 | SetAreaCode | train | func (s *SearchAvailablePhoneNumbersInput) SetAreaCode(v string) *SearchAvailablePhoneNumbersInput {
s.AreaCode = &v
return s
} | go | {
"resource": ""
} |
q2648 | SetInboundCalling | train | func (s *TelephonySettings) SetInboundCalling(v bool) *TelephonySettings {
s.InboundCalling = &v
return s
} | go | {
"resource": ""
} |
q2649 | SetOutboundCalling | train | func (s *TelephonySettings) SetOutboundCalling(v bool) *TelephonySettings {
s.OutboundCalling = &v
return s
} | go | {
"resource": ""
} |
q2650 | SetSMS | train | func (s *TelephonySettings) SetSMS(v bool) *TelephonySettings {
s.SMS = &v
return s
} | go | {
"resource": ""
} |
q2651 | SetCallingRegions | train | func (s *Termination) SetCallingRegions(v []*string) *Termination {
s.CallingRegions = v
return s
} | go | {
"resource": ""
} |
q2652 | SetCidrAllowedList | train | func (s *Termination) SetCidrAllowedList(v []*string) *Termination {
s.CidrAllowedList = v
return s
} | go | {
"resource": ""
} |
q2653 | SetCpsLimit | train | func (s *Termination) SetCpsLimit(v int64) *Termination {
s.CpsLimit = &v
return s
} | go | {
"resource": ""
} |
q2654 | SetDefaultPhoneNumber | train | func (s *Termination) SetDefaultPhoneNumber(v string) *Termination {
s.DefaultPhoneNumber = &v
return s
} | go | {
"resource": ""
} |
q2655 | SetInvitedOn | train | func (s *User) SetInvitedOn(v time.Time) *User {
s.InvitedOn = &v
return s
} | go | {
"resource": ""
} |
q2656 | SetPersonalPIN | train | func (s *User) SetPersonalPIN(v string) *User {
s.PersonalPIN = &v
return s
} | go | {
"resource": ""
} |
q2657 | SetPrimaryEmail | train | func (s *User) SetPrimaryEmail(v string) *User {
s.PrimaryEmail = &v
return s
} | go | {
"resource": ""
} |
q2658 | SetPrimaryProvisionedNumber | train | func (s *User) SetPrimaryProvisionedNumber(v string) *User {
s.PrimaryProvisionedNumber = &v
return s
} | go | {
"resource": ""
} |
q2659 | SetRegisteredOn | train | func (s *User) SetRegisteredOn(v time.Time) *User {
s.RegisteredOn = &v
return s
} | go | {
"resource": ""
} |
q2660 | SetUserInvitationStatus | train | func (s *User) SetUserInvitationStatus(v string) *User {
s.UserInvitationStatus = &v
return s
} | go | {
"resource": ""
} |
q2661 | SetUserRegistrationStatus | train | func (s *User) SetUserRegistrationStatus(v string) *User {
s.UserRegistrationStatus = &v
return s
} | go | {
"resource": ""
} |
q2662 | SetTelephony | train | func (s *UserSettings) SetTelephony(v *TelephonySettings) *UserSettings {
s.Telephony = v
return s
} | go | {
"resource": ""
} |
q2663 | SetOutboundHostName | train | func (s *VoiceConnector) SetOutboundHostName(v string) *VoiceConnector {
s.OutboundHostName = &v
return s
} | go | {
"resource": ""
} |
q2664 | Pause | train | func (rep *Reporter) Pause() {
lock.Lock()
defer lock.Unlock()
if rep == nil {
return
}
rep.close()
} | go | {
"resource": ""
} |
q2665 | Continue | train | func (rep *Reporter) Continue() {
lock.Lock()
defer lock.Unlock()
if rep == nil {
return
}
if !rep.metricsCh.IsPaused() {
return
}
rep.metricsCh.Continue()
} | go | {
"resource": ""
} |
q2666 | New | train | func New(cfg aws.Config, info metadata.ClientInfo, handlers request.Handlers, options ...func(*Client)) *Client {
svc := &Client{
Config: cfg,
ClientInfo: info,
Handlers: handlers.Copy(),
}
switch retryer, ok := cfg.Retryer.(request.Retryer); {
case ok:
svc.Retryer = retryer
case cfg.Retryer != nil ... | go | {
"resource": ""
} |
q2667 | NewRequest | train | func (c *Client) NewRequest(operation *request.Operation, params interface{}, data interface{}) *request.Request {
return request.New(c.Config, c.ClientInfo, c.Handlers, c.Retryer, operation, params, data)
} | go | {
"resource": ""
} |
q2668 | AddDebugHandlers | train | func (c *Client) AddDebugHandlers() {
if !c.Config.LogLevel.AtLeast(aws.LogDebug) {
return
}
c.Handlers.Send.PushFrontNamed(LogHTTPRequestHandler)
c.Handlers.Send.PushBackNamed(LogHTTPResponseHandler)
} | go | {
"resource": ""
} |
q2669 | SetCodeSizeUnzipped | train | func (s *AccountLimit) SetCodeSizeUnzipped(v int64) *AccountLimit {
s.CodeSizeUnzipped = &v
return s
} | go | {
"resource": ""
} |
q2670 | SetCodeSizeZipped | train | func (s *AccountLimit) SetCodeSizeZipped(v int64) *AccountLimit {
s.CodeSizeZipped = &v
return s
} | go | {
"resource": ""
} |
q2671 | SetUnreservedConcurrentExecutions | train | func (s *AccountLimit) SetUnreservedConcurrentExecutions(v int64) *AccountLimit {
s.UnreservedConcurrentExecutions = &v
return s
} | go | {
"resource": ""
} |
q2672 | SetFunctionCount | train | func (s *AccountUsage) SetFunctionCount(v int64) *AccountUsage {
s.FunctionCount = &v
return s
} | go | {
"resource": ""
} |
q2673 | SetEventSourceToken | train | func (s *AddPermissionInput) SetEventSourceToken(v string) *AddPermissionInput {
s.EventSourceToken = &v
return s
} | go | {
"resource": ""
} |
q2674 | SetAdditionalVersionWeights | train | func (s *AliasRoutingConfiguration) SetAdditionalVersionWeights(v map[string]*float64) *AliasRoutingConfiguration {
s.AdditionalVersionWeights = v
return s
} | go | {
"resource": ""
} |
q2675 | SetStartingPositionTimestamp | train | func (s *CreateEventSourceMappingInput) SetStartingPositionTimestamp(v time.Time) *CreateEventSourceMappingInput {
s.StartingPositionTimestamp = &v
return s
} | go | {
"resource": ""
} |
q2676 | SetLastProcessingResult | train | func (s *EventSourceMappingConfiguration) SetLastProcessingResult(v string) *EventSourceMappingConfiguration {
s.LastProcessingResult = &v
return s
} | go | {
"resource": ""
} |
q2677 | SetStateTransitionReason | train | func (s *EventSourceMappingConfiguration) SetStateTransitionReason(v string) *EventSourceMappingConfiguration {
s.StateTransitionReason = &v
return s
} | go | {
"resource": ""
} |
q2678 | SetMasterArn | train | func (s *FunctionConfiguration) SetMasterArn(v string) *FunctionConfiguration {
s.MasterArn = &v
return s
} | go | {
"resource": ""
} |
q2679 | SetAccountLimit | train | func (s *GetAccountSettingsOutput) SetAccountLimit(v *AccountLimit) *GetAccountSettingsOutput {
s.AccountLimit = v
return s
} | go | {
"resource": ""
} |
q2680 | SetAccountUsage | train | func (s *GetAccountSettingsOutput) SetAccountUsage(v *AccountUsage) *GetAccountSettingsOutput {
s.AccountUsage = v
return s
} | go | {
"resource": ""
} |
q2681 | SetConcurrency | train | func (s *GetFunctionOutput) SetConcurrency(v *PutFunctionConcurrencyOutput) *GetFunctionOutput {
s.Concurrency = v
return s
} | go | {
"resource": ""
} |
q2682 | SetInvokeArgs | train | func (s *InvokeAsyncInput) SetInvokeArgs(v io.ReadSeeker) *InvokeAsyncInput {
s.InvokeArgs = v
return s
} | go | {
"resource": ""
} |
q2683 | SetLogType | train | func (s *InvokeInput) SetLogType(v string) *InvokeInput {
s.LogType = &v
return s
} | go | {
"resource": ""
} |
q2684 | SetExecutedVersion | train | func (s *InvokeOutput) SetExecutedVersion(v string) *InvokeOutput {
s.ExecutedVersion = &v
return s
} | go | {
"resource": ""
} |
q2685 | SetFunctionError | train | func (s *InvokeOutput) SetFunctionError(v string) *InvokeOutput {
s.FunctionError = &v
return s
} | go | {
"resource": ""
} |
q2686 | SetEventSourceMappings | train | func (s *ListEventSourceMappingsOutput) SetEventSourceMappings(v []*EventSourceMappingConfiguration) *ListEventSourceMappingsOutput {
s.EventSourceMappings = v
return s
} | go | {
"resource": ""
} |
q2687 | SetMasterRegion | train | func (s *ListFunctionsInput) SetMasterRegion(v string) *ListFunctionsInput {
s.MasterRegion = &v
return s
} | go | {
"resource": ""
} |
q2688 | SetLayerVersions | train | func (s *ListLayerVersionsOutput) SetLayerVersions(v []*LayerVersionsListItem) *ListLayerVersionsOutput {
s.LayerVersions = v
return s
} | go | {
"resource": ""
} |
q2689 | GetAWSSDKCredentialProvider | train | func GetAWSSDKCredentialProvider() (func() (key, secret, token string, err error), func() bool) {
return myCredProvider.Retrieve, myCredProvider.IsExpired
} | go | {
"resource": ""
} |
q2690 | Pop | train | func (s *ParseStack) Pop() AST {
s.top--
return s.container[s.top]
} | go | {
"resource": ""
} |
q2691 | Push | train | func (s *ParseStack) Push(ast AST) {
s.container[s.top] = ast
s.top++
} | go | {
"resource": ""
} |
q2692 | MarkComplete | train | func (s *ParseStack) MarkComplete(ast AST) {
s.list[s.index] = ast
s.index++
} | go | {
"resource": ""
} |
q2693 | SetLicenseConfigurationAssociations | train | func (s *ListAssociationsForLicenseConfigurationOutput) SetLicenseConfigurationAssociations(v []*LicenseConfigurationAssociation) *ListAssociationsForLicenseConfigurationOutput {
s.LicenseConfigurationAssociations = v
return s
} | go | {
"resource": ""
} |
q2694 | SetLicenseConfigurationArns | train | func (s *ListLicenseConfigurationsInput) SetLicenseConfigurationArns(v []*string) *ListLicenseConfigurationsInput {
s.LicenseConfigurationArns = v
return s
} | go | {
"resource": ""
} |
q2695 | SetLicenseConfigurations | train | func (s *ListLicenseConfigurationsOutput) SetLicenseConfigurations(v []*LicenseConfiguration) *ListLicenseConfigurationsOutput {
s.LicenseConfigurations = v
return s
} | go | {
"resource": ""
} |
q2696 | SetLicenseSpecifications | train | func (s *ListLicenseSpecificationsForResourceOutput) SetLicenseSpecifications(v []*LicenseSpecification) *ListLicenseSpecificationsForResourceOutput {
s.LicenseSpecifications = v
return s
} | go | {
"resource": ""
} |
q2697 | SetResourceInventoryList | train | func (s *ListResourceInventoryOutput) SetResourceInventoryList(v []*ResourceInventory) *ListResourceInventoryOutput {
s.ResourceInventoryList = v
return s
} | go | {
"resource": ""
} |
q2698 | SetLicenseConfigurationUsageList | train | func (s *ListUsageForLicenseConfigurationOutput) SetLicenseConfigurationUsageList(v []*LicenseConfigurationUsage) *ListUsageForLicenseConfigurationOutput {
s.LicenseConfigurationUsageList = v
return s
} | go | {
"resource": ""
} |
q2699 | SetAssociationCount | train | func (s *ManagedResourceSummary) SetAssociationCount(v int64) *ManagedResourceSummary {
s.AssociationCount = &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.