_id stringlengths 2 7 | title stringlengths 1 118 | partition stringclasses 3
values | text stringlengths 52 85.5k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
q167000 | NewUnknownEndpointError | train | func NewUnknownEndpointError(p, s, r string, known []string) UnknownEndpointError {
return UnknownEndpointError{
awsError: awserr.New("UnknownEndpointError",
"could not resolve endpoint", nil),
Partition: p,
Service: s,
Region: r,
Known: known,
}
} | go | {
"resource": ""
} |
q167001 | IsKnownTimestampFormat | train | func IsKnownTimestampFormat(name string) bool {
switch name {
case RFC822TimeFormatName:
fallthrough
case ISO8601TimeFormatName:
fallthrough
case UnixTimeFormatName:
return true
default:
return false
}
} | go | {
"resource": ""
} |
q167002 | FormatTime | train | func FormatTime(name string, t time.Time) string {
t = t.UTC()
switch name {
case RFC822TimeFormatName:
return t.Format(RFC822TimeFormat)
case ISO8601TimeFormatName:
return t.Format(ISO8601TimeFormat)
case UnixTimeFormatName:
return strconv.FormatInt(t.Unix(), 10)
default:
panic("unknown timestamp format... | go | {
"resource": ""
} |
q167003 | ParseTime | train | func ParseTime(formatName, value string) (time.Time, error) {
switch formatName {
case RFC822TimeFormatName:
return time.Parse(RFC822TimeFormat, value)
case ISO8601TimeFormatName:
return time.Parse(ISO8601TimeFormat, value)
case UnixTimeFormatName:
v, err := strconv.ParseFloat(value, 64)
if err != nil {
... | go | {
"resource": ""
} |
q167004 | SetDataSetPublicationDate | train | func (s *GenerateDataSetInput) SetDataSetPublicationDate(v time.Time) *GenerateDataSetInput {
s.DataSetPublicationDate = &v
return s
} | go | {
"resource": ""
} |
q167005 | SetFromDate | train | func (s *StartSupportDataExportInput) SetFromDate(v time.Time) *StartSupportDataExportInput {
s.FromDate = &v
return s
} | go | {
"resource": ""
} |
q167006 | SetLaunchDetails | train | func (s *AppSummary) SetLaunchDetails(v *LaunchDetails) *AppSummary {
s.LaunchDetails = v
return s
} | go | {
"resource": ""
} |
q167007 | SetLaunchStatus | train | func (s *AppSummary) SetLaunchStatus(v string) *AppSummary {
s.LaunchStatus = &v
return s
} | go | {
"resource": ""
} |
q167008 | SetLaunchStatusMessage | train | func (s *AppSummary) SetLaunchStatusMessage(v string) *AppSummary {
s.LaunchStatusMessage = &v
return s
} | go | {
"resource": ""
} |
q167009 | SetReplicationStatusMessage | train | func (s *AppSummary) SetReplicationStatusMessage(v string) *AppSummary {
s.ReplicationStatusMessage = &v
return s
} | go | {
"resource": ""
} |
q167010 | SetTotalServerGroups | train | func (s *AppSummary) SetTotalServerGroups(v int64) *AppSummary {
s.TotalServerGroups = &v
return s
} | go | {
"resource": ""
} |
q167011 | SetTotalServers | train | func (s *AppSummary) SetTotalServers(v int64) *AppSummary {
s.TotalServers = &v
return s
} | go | {
"resource": ""
} |
q167012 | SetAssociatedOn | train | func (s *Connector) SetAssociatedOn(v time.Time) *Connector {
s.AssociatedOn = &v
return s
} | go | {
"resource": ""
} |
q167013 | SetCapabilityList | train | func (s *Connector) SetCapabilityList(v []*string) *Connector {
s.CapabilityList = v
return s
} | go | {
"resource": ""
} |
q167014 | SetForceStopAppReplication | train | func (s *DeleteAppInput) SetForceStopAppReplication(v bool) *DeleteAppInput {
s.ForceStopAppReplication = &v
return s
} | go | {
"resource": ""
} |
q167015 | SetForceTerminateApp | train | func (s *DeleteAppInput) SetForceTerminateApp(v bool) *DeleteAppInput {
s.ForceTerminateApp = &v
return s
} | go | {
"resource": ""
} |
q167016 | SetChangesetFormat | train | func (s *GenerateChangeSetInput) SetChangesetFormat(v string) *GenerateChangeSetInput {
s.ChangesetFormat = &v
return s
} | go | {
"resource": ""
} |
q167017 | SetTemplateFormat | train | func (s *GenerateTemplateInput) SetTemplateFormat(v string) *GenerateTemplateInput {
s.TemplateFormat = &v
return s
} | go | {
"resource": ""
} |
q167018 | SetConnectorList | train | func (s *GetConnectorsOutput) SetConnectorList(v []*Connector) *GetConnectorsOutput {
s.ConnectorList = v
return s
} | go | {
"resource": ""
} |
q167019 | SetReplicationJobList | train | func (s *GetReplicationJobsOutput) SetReplicationJobList(v []*ReplicationJob) *GetReplicationJobsOutput {
s.ReplicationJobList = v
return s
} | go | {
"resource": ""
} |
q167020 | SetReplicationJob | train | func (s *GetReplicationRunsOutput) SetReplicationJob(v *ReplicationJob) *GetReplicationRunsOutput {
s.ReplicationJob = v
return s
} | go | {
"resource": ""
} |
q167021 | SetVmServerAddressList | train | func (s *GetServersInput) SetVmServerAddressList(v []*VmServerAddress) *GetServersInput {
s.VmServerAddressList = v
return s
} | go | {
"resource": ""
} |
q167022 | SetServerCatalogStatus | train | func (s *GetServersOutput) SetServerCatalogStatus(v string) *GetServersOutput {
s.ServerCatalogStatus = &v
return s
} | go | {
"resource": ""
} |
q167023 | SetCompletedTime | train | func (s *ReplicationRun) SetCompletedTime(v time.Time) *ReplicationRun {
s.CompletedTime = &v
return s
} | go | {
"resource": ""
} |
q167024 | SetScheduledStartTime | train | func (s *ReplicationRun) SetScheduledStartTime(v time.Time) *ReplicationRun {
s.ScheduledStartTime = &v
return s
} | go | {
"resource": ""
} |
q167025 | SetStageDetails | train | func (s *ReplicationRun) SetStageDetails(v *ReplicationRunStageDetails) *ReplicationRun {
s.StageDetails = v
return s
} | go | {
"resource": ""
} |
q167026 | SetStageProgress | train | func (s *ReplicationRunStageDetails) SetStageProgress(v string) *ReplicationRunStageDetails {
s.StageProgress = &v
return s
} | go | {
"resource": ""
} |
q167027 | SetReplicationJobTerminated | train | func (s *Server) SetReplicationJobTerminated(v bool) *Server {
s.ReplicationJobTerminated = &v
return s
} | go | {
"resource": ""
} |
q167028 | SetLaunchOrder | train | func (s *ServerGroupLaunchConfiguration) SetLaunchOrder(v int64) *ServerGroupLaunchConfiguration {
s.LaunchOrder = &v
return s
} | go | {
"resource": ""
} |
q167029 | SetServerLaunchConfigurations | train | func (s *ServerGroupLaunchConfiguration) SetServerLaunchConfigurations(v []*ServerLaunchConfiguration) *ServerGroupLaunchConfiguration {
s.ServerLaunchConfigurations = v
return s
} | go | {
"resource": ""
} |
q167030 | SetServerReplicationConfigurations | train | func (s *ServerGroupReplicationConfiguration) SetServerReplicationConfigurations(v []*ServerReplicationConfiguration) *ServerGroupReplicationConfiguration {
s.ServerReplicationConfigurations = v
return s
} | go | {
"resource": ""
} |
q167031 | SetLogicalId | train | func (s *ServerLaunchConfiguration) SetLogicalId(v string) *ServerLaunchConfiguration {
s.LogicalId = &v
return s
} | go | {
"resource": ""
} |
q167032 | SetSubnet | train | func (s *ServerLaunchConfiguration) SetSubnet(v string) *ServerLaunchConfiguration {
s.Subnet = &v
return s
} | go | {
"resource": ""
} |
q167033 | SetServerReplicationParameters | train | func (s *ServerReplicationConfiguration) SetServerReplicationParameters(v *ServerReplicationParameters) *ServerReplicationConfiguration {
s.ServerReplicationParameters = v
return s
} | go | {
"resource": ""
} |
q167034 | SetSeedTime | train | func (s *ServerReplicationParameters) SetSeedTime(v time.Time) *ServerReplicationParameters {
s.SeedTime = &v
return s
} | go | {
"resource": ""
} |
q167035 | SetVmName | train | func (s *VmServer) SetVmName(v string) *VmServer {
s.VmName = &v
return s
} | go | {
"resource": ""
} |
q167036 | SetVmPath | train | func (s *VmServer) SetVmPath(v string) *VmServer {
s.VmPath = &v
return s
} | go | {
"resource": ""
} |
q167037 | SetVmServerAddress | train | func (s *VmServer) SetVmServerAddress(v *VmServerAddress) *VmServer {
s.VmServerAddress = v
return s
} | go | {
"resource": ""
} |
q167038 | SetVmId | train | func (s *VmServerAddress) SetVmId(v string) *VmServerAddress {
s.VmId = &v
return s
} | go | {
"resource": ""
} |
q167039 | ShapeDoc | train | func (esAPI *EventStreamAPI) ShapeDoc() string {
tmpl := template.Must(template.New("eventStreamShapeDoc").Parse(`
{{- $.Name }} provides handling of EventStreams for
the {{ $.Operation.ExportedName }} API.
{{- if $.Inbound }}
Use this type to receive {{ $.Inbound.Name }} events. The events
can be read from the Event... | go | {
"resource": ""
} |
q167040 | eventHasNonBlobPayloadMembers | train | func eventHasNonBlobPayloadMembers(s *Shape) bool {
num := len(s.MemberRefs)
for _, ref := range s.MemberRefs {
if ref.IsEventHeader || (ref.IsEventPayload && (ref.Shape.Type == "blob" || ref.Shape.Type == "string")) {
num--
}
}
return num > 0
} | go | {
"resource": ""
} |
q167041 | SetEvaluateTargetHealth | train | func (s *AliasTarget) SetEvaluateTargetHealth(v bool) *AliasTarget {
s.EvaluateTargetHealth = &v
return s
} | go | {
"resource": ""
} |
q167042 | SetResourceRecordSet | train | func (s *Change) SetResourceRecordSet(v *ResourceRecordSet) *Change {
s.ResourceRecordSet = v
return s
} | go | {
"resource": ""
} |
q167043 | SetSubmittedAt | train | func (s *ChangeInfo) SetSubmittedAt(v time.Time) *ChangeInfo {
s.SubmittedAt = &v
return s
} | go | {
"resource": ""
} |
q167044 | SetChangeBatch | train | func (s *ChangeResourceRecordSetsInput) SetChangeBatch(v *ChangeBatch) *ChangeResourceRecordSetsInput {
s.ChangeBatch = v
return s
} | go | {
"resource": ""
} |
q167045 | SetRemoveTagKeys | train | func (s *ChangeTagsForResourceInput) SetRemoveTagKeys(v []*string) *ChangeTagsForResourceInput {
s.RemoveTagKeys = v
return s
} | go | {
"resource": ""
} |
q167046 | SetHostedZoneConfig | train | func (s *CreateHostedZoneInput) SetHostedZoneConfig(v *HostedZoneConfig) *CreateHostedZoneInput {
s.HostedZoneConfig = v
return s
} | go | {
"resource": ""
} |
q167047 | SetNameServers | train | func (s *DelegationSet) SetNameServers(v []*string) *DelegationSet {
s.NameServers = v
return s
} | go | {
"resource": ""
} |
q167048 | SetContinentName | train | func (s *GeoLocationDetails) SetContinentName(v string) *GeoLocationDetails {
s.ContinentName = &v
return s
} | go | {
"resource": ""
} |
q167049 | SetSubdivisionName | train | func (s *GeoLocationDetails) SetSubdivisionName(v string) *GeoLocationDetails {
s.SubdivisionName = &v
return s
} | go | {
"resource": ""
} |
q167050 | SetCheckerIpRanges | train | func (s *GetCheckerIpRangesOutput) SetCheckerIpRanges(v []*string) *GetCheckerIpRangesOutput {
s.CheckerIpRanges = v
return s
} | go | {
"resource": ""
} |
q167051 | SetGeoLocationDetails | train | func (s *GetGeoLocationOutput) SetGeoLocationDetails(v *GeoLocationDetails) *GetGeoLocationOutput {
s.GeoLocationDetails = v
return s
} | go | {
"resource": ""
} |
q167052 | SetHealthCheckCount | train | func (s *GetHealthCheckCountOutput) SetHealthCheckCount(v int64) *GetHealthCheckCountOutput {
s.HealthCheckCount = &v
return s
} | go | {
"resource": ""
} |
q167053 | SetHostedZoneCount | train | func (s *GetHostedZoneCountOutput) SetHostedZoneCount(v int64) *GetHostedZoneCountOutput {
s.HostedZoneCount = &v
return s
} | go | {
"resource": ""
} |
q167054 | SetTrafficPolicyInstanceCount | train | func (s *GetTrafficPolicyInstanceCountOutput) SetTrafficPolicyInstanceCount(v int64) *GetTrafficPolicyInstanceCountOutput {
s.TrafficPolicyInstanceCount = &v
return s
} | go | {
"resource": ""
} |
q167055 | SetCloudWatchAlarmConfiguration | train | func (s *HealthCheck) SetCloudWatchAlarmConfiguration(v *CloudWatchAlarmConfiguration) *HealthCheck {
s.CloudWatchAlarmConfiguration = v
return s
} | go | {
"resource": ""
} |
q167056 | SetMeasureLatency | train | func (s *HealthCheckConfig) SetMeasureLatency(v bool) *HealthCheckConfig {
s.MeasureLatency = &v
return s
} | go | {
"resource": ""
} |
q167057 | SetRequestInterval | train | func (s *HealthCheckConfig) SetRequestInterval(v int64) *HealthCheckConfig {
s.RequestInterval = &v
return s
} | go | {
"resource": ""
} |
q167058 | SetStatusReport | train | func (s *HealthCheckObservation) SetStatusReport(v *StatusReport) *HealthCheckObservation {
s.StatusReport = v
return s
} | go | {
"resource": ""
} |
q167059 | SetResourceRecordSetCount | train | func (s *HostedZone) SetResourceRecordSetCount(v int64) *HostedZone {
s.ResourceRecordSetCount = &v
return s
} | go | {
"resource": ""
} |
q167060 | SetPrivateZone | train | func (s *HostedZoneConfig) SetPrivateZone(v bool) *HostedZoneConfig {
s.PrivateZone = &v
return s
} | go | {
"resource": ""
} |
q167061 | SetStartContinentCode | train | func (s *ListGeoLocationsInput) SetStartContinentCode(v string) *ListGeoLocationsInput {
s.StartContinentCode = &v
return s
} | go | {
"resource": ""
} |
q167062 | SetStartCountryCode | train | func (s *ListGeoLocationsInput) SetStartCountryCode(v string) *ListGeoLocationsInput {
s.StartCountryCode = &v
return s
} | go | {
"resource": ""
} |
q167063 | SetStartSubdivisionCode | train | func (s *ListGeoLocationsInput) SetStartSubdivisionCode(v string) *ListGeoLocationsInput {
s.StartSubdivisionCode = &v
return s
} | go | {
"resource": ""
} |
q167064 | SetGeoLocationDetailsList | train | func (s *ListGeoLocationsOutput) SetGeoLocationDetailsList(v []*GeoLocationDetails) *ListGeoLocationsOutput {
s.GeoLocationDetailsList = v
return s
} | go | {
"resource": ""
} |
q167065 | SetNextContinentCode | train | func (s *ListGeoLocationsOutput) SetNextContinentCode(v string) *ListGeoLocationsOutput {
s.NextContinentCode = &v
return s
} | go | {
"resource": ""
} |
q167066 | SetNextCountryCode | train | func (s *ListGeoLocationsOutput) SetNextCountryCode(v string) *ListGeoLocationsOutput {
s.NextCountryCode = &v
return s
} | go | {
"resource": ""
} |
q167067 | SetNextSubdivisionCode | train | func (s *ListGeoLocationsOutput) SetNextSubdivisionCode(v string) *ListGeoLocationsOutput {
s.NextSubdivisionCode = &v
return s
} | go | {
"resource": ""
} |
q167068 | SetHealthChecks | train | func (s *ListHealthChecksOutput) SetHealthChecks(v []*HealthCheck) *ListHealthChecksOutput {
s.HealthChecks = v
return s
} | go | {
"resource": ""
} |
q167069 | SetNextDNSName | train | func (s *ListHostedZonesByNameOutput) SetNextDNSName(v string) *ListHostedZonesByNameOutput {
s.NextDNSName = &v
return s
} | go | {
"resource": ""
} |
q167070 | SetNextHostedZoneId | train | func (s *ListHostedZonesByNameOutput) SetNextHostedZoneId(v string) *ListHostedZonesByNameOutput {
s.NextHostedZoneId = &v
return s
} | go | {
"resource": ""
} |
q167071 | SetQueryLoggingConfigs | train | func (s *ListQueryLoggingConfigsOutput) SetQueryLoggingConfigs(v []*QueryLoggingConfig) *ListQueryLoggingConfigsOutput {
s.QueryLoggingConfigs = v
return s
} | go | {
"resource": ""
} |
q167072 | SetStartRecordIdentifier | train | func (s *ListResourceRecordSetsInput) SetStartRecordIdentifier(v string) *ListResourceRecordSetsInput {
s.StartRecordIdentifier = &v
return s
} | go | {
"resource": ""
} |
q167073 | SetStartRecordName | train | func (s *ListResourceRecordSetsInput) SetStartRecordName(v string) *ListResourceRecordSetsInput {
s.StartRecordName = &v
return s
} | go | {
"resource": ""
} |
q167074 | SetStartRecordType | train | func (s *ListResourceRecordSetsInput) SetStartRecordType(v string) *ListResourceRecordSetsInput {
s.StartRecordType = &v
return s
} | go | {
"resource": ""
} |
q167075 | SetNextRecordIdentifier | train | func (s *ListResourceRecordSetsOutput) SetNextRecordIdentifier(v string) *ListResourceRecordSetsOutput {
s.NextRecordIdentifier = &v
return s
} | go | {
"resource": ""
} |
q167076 | SetNextRecordName | train | func (s *ListResourceRecordSetsOutput) SetNextRecordName(v string) *ListResourceRecordSetsOutput {
s.NextRecordName = &v
return s
} | go | {
"resource": ""
} |
q167077 | SetNextRecordType | train | func (s *ListResourceRecordSetsOutput) SetNextRecordType(v string) *ListResourceRecordSetsOutput {
s.NextRecordType = &v
return s
} | go | {
"resource": ""
} |
q167078 | SetResourceRecordSets | train | func (s *ListResourceRecordSetsOutput) SetResourceRecordSets(v []*ResourceRecordSet) *ListResourceRecordSetsOutput {
s.ResourceRecordSets = v
return s
} | go | {
"resource": ""
} |
q167079 | SetDelegationSets | train | func (s *ListReusableDelegationSetsOutput) SetDelegationSets(v []*DelegationSet) *ListReusableDelegationSetsOutput {
s.DelegationSets = v
return s
} | go | {
"resource": ""
} |
q167080 | SetResourceTagSet | train | func (s *ListTagsForResourceOutput) SetResourceTagSet(v *ResourceTagSet) *ListTagsForResourceOutput {
s.ResourceTagSet = v
return s
} | go | {
"resource": ""
} |
q167081 | SetResourceTagSets | train | func (s *ListTagsForResourcesOutput) SetResourceTagSets(v []*ResourceTagSet) *ListTagsForResourcesOutput {
s.ResourceTagSets = v
return s
} | go | {
"resource": ""
} |
q167082 | SetTrafficPolicySummaries | train | func (s *ListTrafficPoliciesOutput) SetTrafficPolicySummaries(v []*TrafficPolicySummary) *ListTrafficPoliciesOutput {
s.TrafficPolicySummaries = v
return s
} | go | {
"resource": ""
} |
q167083 | SetTrafficPolicies | train | func (s *ListTrafficPolicyVersionsOutput) SetTrafficPolicies(v []*TrafficPolicy) *ListTrafficPolicyVersionsOutput {
s.TrafficPolicies = v
return s
} | go | {
"resource": ""
} |
q167084 | SetAliasTarget | train | func (s *ResourceRecordSet) SetAliasTarget(v *AliasTarget) *ResourceRecordSet {
s.AliasTarget = v
return s
} | go | {
"resource": ""
} |
q167085 | SetFailover | train | func (s *ResourceRecordSet) SetFailover(v string) *ResourceRecordSet {
s.Failover = &v
return s
} | go | {
"resource": ""
} |
q167086 | SetMultiValueAnswer | train | func (s *ResourceRecordSet) SetMultiValueAnswer(v bool) *ResourceRecordSet {
s.MultiValueAnswer = &v
return s
} | go | {
"resource": ""
} |
q167087 | SetResourceRecords | train | func (s *ResourceRecordSet) SetResourceRecords(v []*ResourceRecord) *ResourceRecordSet {
s.ResourceRecords = v
return s
} | go | {
"resource": ""
} |
q167088 | SetSetIdentifier | train | func (s *ResourceRecordSet) SetSetIdentifier(v string) *ResourceRecordSet {
s.SetIdentifier = &v
return s
} | go | {
"resource": ""
} |
q167089 | SetTrafficPolicyInstanceId | train | func (s *ResourceRecordSet) SetTrafficPolicyInstanceId(v string) *ResourceRecordSet {
s.TrafficPolicyInstanceId = &v
return s
} | go | {
"resource": ""
} |
q167090 | SetCheckedTime | train | func (s *StatusReport) SetCheckedTime(v time.Time) *StatusReport {
s.CheckedTime = &v
return s
} | go | {
"resource": ""
} |
q167091 | SetEDNS0ClientSubnetIP | train | func (s *TestDNSAnswerInput) SetEDNS0ClientSubnetIP(v string) *TestDNSAnswerInput {
s.EDNS0ClientSubnetIP = &v
return s
} | go | {
"resource": ""
} |
q167092 | SetEDNS0ClientSubnetMask | train | func (s *TestDNSAnswerInput) SetEDNS0ClientSubnetMask(v string) *TestDNSAnswerInput {
s.EDNS0ClientSubnetMask = &v
return s
} | go | {
"resource": ""
} |
q167093 | SetResolverIP | train | func (s *TestDNSAnswerInput) SetResolverIP(v string) *TestDNSAnswerInput {
s.ResolverIP = &v
return s
} | go | {
"resource": ""
} |
q167094 | SetNameserver | train | func (s *TestDNSAnswerOutput) SetNameserver(v string) *TestDNSAnswerOutput {
s.Nameserver = &v
return s
} | go | {
"resource": ""
} |
q167095 | SetRecordData | train | func (s *TestDNSAnswerOutput) SetRecordData(v []*string) *TestDNSAnswerOutput {
s.RecordData = v
return s
} | go | {
"resource": ""
} |
q167096 | SetTrafficPolicyType | train | func (s *TrafficPolicyInstance) SetTrafficPolicyType(v string) *TrafficPolicyInstance {
s.TrafficPolicyType = &v
return s
} | go | {
"resource": ""
} |
q167097 | SetTrafficPolicyCount | train | func (s *TrafficPolicySummary) SetTrafficPolicyCount(v int64) *TrafficPolicySummary {
s.TrafficPolicyCount = &v
return s
} | go | {
"resource": ""
} |
q167098 | SetResetElements | train | func (s *UpdateHealthCheckInput) SetResetElements(v []*string) *UpdateHealthCheckInput {
s.ResetElements = v
return s
} | go | {
"resource": ""
} |
q167099 | SetVPCRegion | train | func (s *VPC) SetVPCRegion(v string) *VPC {
s.VPCRegion = &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.