_id
stringlengths 2
7
| title
stringlengths 1
118
| partition
stringclasses 3
values | text
stringlengths 52
85.5k
| language
stringclasses 1
value | meta_information
dict |
---|---|---|---|---|---|
q900
|
SetRestoreWindow
|
train
|
func (s *DBInstanceAutomatedBackup) SetRestoreWindow(v *RestoreWindow) *DBInstanceAutomatedBackup {
s.RestoreWindow = v
return s
}
|
go
|
{
"resource": ""
}
|
q901
|
SetDBSecurityGroupArn
|
train
|
func (s *DBSecurityGroup) SetDBSecurityGroupArn(v string) *DBSecurityGroup {
s.DBSecurityGroupArn = &v
return s
}
|
go
|
{
"resource": ""
}
|
q902
|
SetDBSnapshotArn
|
train
|
func (s *DBSnapshot) SetDBSnapshotArn(v string) *DBSnapshot {
s.DBSnapshotArn = &v
return s
}
|
go
|
{
"resource": ""
}
|
q903
|
SetDBSnapshotAttributes
|
train
|
func (s *DBSnapshotAttributesResult) SetDBSnapshotAttributes(v []*DBSnapshotAttribute) *DBSnapshotAttributesResult {
s.DBSnapshotAttributes = v
return s
}
|
go
|
{
"resource": ""
}
|
q904
|
SetDBInstanceAutomatedBackup
|
train
|
func (s *DeleteDBInstanceAutomatedBackupOutput) SetDBInstanceAutomatedBackup(v *DBInstanceAutomatedBackup) *DeleteDBInstanceAutomatedBackupOutput {
s.DBInstanceAutomatedBackup = v
return s
}
|
go
|
{
"resource": ""
}
|
q905
|
SetDeleteAutomatedBackups
|
train
|
func (s *DeleteDBInstanceInput) SetDeleteAutomatedBackups(v bool) *DeleteDBInstanceInput {
s.DeleteAutomatedBackups = &v
return s
}
|
go
|
{
"resource": ""
}
|
q906
|
SetAccountQuotas
|
train
|
func (s *DescribeAccountAttributesOutput) SetAccountQuotas(v []*AccountQuota) *DescribeAccountAttributesOutput {
s.AccountQuotas = v
return s
}
|
go
|
{
"resource": ""
}
|
q907
|
SetDBClusterBacktracks
|
train
|
func (s *DescribeDBClusterBacktracksOutput) SetDBClusterBacktracks(v []*BacktrackDBClusterOutput) *DescribeDBClusterBacktracksOutput {
s.DBClusterBacktracks = v
return s
}
|
go
|
{
"resource": ""
}
|
q908
|
SetDBClusterEndpoints
|
train
|
func (s *DescribeDBClusterEndpointsOutput) SetDBClusterEndpoints(v []*DBClusterEndpoint) *DescribeDBClusterEndpointsOutput {
s.DBClusterEndpoints = v
return s
}
|
go
|
{
"resource": ""
}
|
q909
|
SetDBInstanceAutomatedBackups
|
train
|
func (s *DescribeDBInstanceAutomatedBackupsOutput) SetDBInstanceAutomatedBackups(v []*DBInstanceAutomatedBackup) *DescribeDBInstanceAutomatedBackupsOutput {
s.DBInstanceAutomatedBackups = v
return s
}
|
go
|
{
"resource": ""
}
|
q910
|
SetLastWritten
|
train
|
func (s *DescribeDBLogFilesDetails) SetLastWritten(v int64) *DescribeDBLogFilesDetails {
s.LastWritten = &v
return s
}
|
go
|
{
"resource": ""
}
|
q911
|
SetFileLastWritten
|
train
|
func (s *DescribeDBLogFilesInput) SetFileLastWritten(v int64) *DescribeDBLogFilesInput {
s.FileLastWritten = &v
return s
}
|
go
|
{
"resource": ""
}
|
q912
|
SetFilenameContains
|
train
|
func (s *DescribeDBLogFilesInput) SetFilenameContains(v string) *DescribeDBLogFilesInput {
s.FilenameContains = &v
return s
}
|
go
|
{
"resource": ""
}
|
q913
|
SetDescribeDBLogFiles
|
train
|
func (s *DescribeDBLogFilesOutput) SetDescribeDBLogFiles(v []*DescribeDBLogFilesDetails) *DescribeDBLogFilesOutput {
s.DescribeDBLogFiles = v
return s
}
|
go
|
{
"resource": ""
}
|
q914
|
SetDBSnapshots
|
train
|
func (s *DescribeDBSnapshotsOutput) SetDBSnapshots(v []*DBSnapshot) *DescribeDBSnapshotsOutput {
s.DBSnapshots = v
return s
}
|
go
|
{
"resource": ""
}
|
q915
|
SetGlobalClusters
|
train
|
func (s *DescribeGlobalClustersOutput) SetGlobalClusters(v []*GlobalCluster) *DescribeGlobalClustersOutput {
s.GlobalClusters = v
return s
}
|
go
|
{
"resource": ""
}
|
q916
|
SetOptionGroupOptions
|
train
|
func (s *DescribeOptionGroupOptionsOutput) SetOptionGroupOptions(v []*OptionGroupOption) *DescribeOptionGroupOptionsOutput {
s.OptionGroupOptions = v
return s
}
|
go
|
{
"resource": ""
}
|
q917
|
SetOptionGroupsList
|
train
|
func (s *DescribeOptionGroupsOutput) SetOptionGroupsList(v []*OptionGroup) *DescribeOptionGroupsOutput {
s.OptionGroupsList = v
return s
}
|
go
|
{
"resource": ""
}
|
q918
|
SetReservedDBInstancesOfferings
|
train
|
func (s *DescribeReservedDBInstancesOfferingsOutput) SetReservedDBInstancesOfferings(v []*ReservedDBInstancesOffering) *DescribeReservedDBInstancesOfferingsOutput {
s.ReservedDBInstancesOfferings = v
return s
}
|
go
|
{
"resource": ""
}
|
q919
|
SetReservedDBInstances
|
train
|
func (s *DescribeReservedDBInstancesOutput) SetReservedDBInstances(v []*ReservedDBInstance) *DescribeReservedDBInstancesOutput {
s.ReservedDBInstances = v
return s
}
|
go
|
{
"resource": ""
}
|
q920
|
SetSourceRegions
|
train
|
func (s *DescribeSourceRegionsOutput) SetSourceRegions(v []*SourceRegion) *DescribeSourceRegionsOutput {
s.SourceRegions = v
return s
}
|
go
|
{
"resource": ""
}
|
q921
|
SetNumberOfLines
|
train
|
func (s *DownloadDBLogFilePortionInput) SetNumberOfLines(v int64) *DownloadDBLogFilePortionInput {
s.NumberOfLines = &v
return s
}
|
go
|
{
"resource": ""
}
|
q922
|
SetAdditionalDataPending
|
train
|
func (s *DownloadDBLogFilePortionOutput) SetAdditionalDataPending(v bool) *DownloadDBLogFilePortionOutput {
s.AdditionalDataPending = &v
return s
}
|
go
|
{
"resource": ""
}
|
q923
|
SetLogFileData
|
train
|
func (s *DownloadDBLogFilePortionOutput) SetLogFileData(v string) *DownloadDBLogFilePortionOutput {
s.LogFileData = &v
return s
}
|
go
|
{
"resource": ""
}
|
q924
|
SetGlobalClusterArn
|
train
|
func (s *GlobalCluster) SetGlobalClusterArn(v string) *GlobalCluster {
s.GlobalClusterArn = &v
return s
}
|
go
|
{
"resource": ""
}
|
q925
|
SetGlobalClusterMembers
|
train
|
func (s *GlobalCluster) SetGlobalClusterMembers(v []*GlobalClusterMember) *GlobalCluster {
s.GlobalClusterMembers = v
return s
}
|
go
|
{
"resource": ""
}
|
q926
|
SetGlobalClusterResourceId
|
train
|
func (s *GlobalCluster) SetGlobalClusterResourceId(v string) *GlobalCluster {
s.GlobalClusterResourceId = &v
return s
}
|
go
|
{
"resource": ""
}
|
q927
|
SetIsWriter
|
train
|
func (s *GlobalClusterMember) SetIsWriter(v bool) *GlobalClusterMember {
s.IsWriter = &v
return s
}
|
go
|
{
"resource": ""
}
|
q928
|
SetReaders
|
train
|
func (s *GlobalClusterMember) SetReaders(v []*string) *GlobalClusterMember {
s.Readers = v
return s
}
|
go
|
{
"resource": ""
}
|
q929
|
SetAllowedValue
|
train
|
func (s *MinimumEngineVersionPerAllowedValue) SetAllowedValue(v string) *MinimumEngineVersionPerAllowedValue {
s.AllowedValue = &v
return s
}
|
go
|
{
"resource": ""
}
|
q930
|
SetCurrentCapacity
|
train
|
func (s *ModifyCurrentDBClusterCapacityOutput) SetCurrentCapacity(v int64) *ModifyCurrentDBClusterCapacityOutput {
s.CurrentCapacity = &v
return s
}
|
go
|
{
"resource": ""
}
|
q931
|
SetPendingCapacity
|
train
|
func (s *ModifyCurrentDBClusterCapacityOutput) SetPendingCapacity(v int64) *ModifyCurrentDBClusterCapacityOutput {
s.PendingCapacity = &v
return s
}
|
go
|
{
"resource": ""
}
|
q932
|
SetEnableHttpEndpoint
|
train
|
func (s *ModifyDBClusterInput) SetEnableHttpEndpoint(v bool) *ModifyDBClusterInput {
s.EnableHttpEndpoint = &v
return s
}
|
go
|
{
"resource": ""
}
|
q933
|
SetNewGlobalClusterIdentifier
|
train
|
func (s *ModifyGlobalClusterInput) SetNewGlobalClusterIdentifier(v string) *ModifyGlobalClusterInput {
s.NewGlobalClusterIdentifier = &v
return s
}
|
go
|
{
"resource": ""
}
|
q934
|
SetOptionsToInclude
|
train
|
func (s *ModifyOptionGroupInput) SetOptionsToInclude(v []*OptionConfiguration) *ModifyOptionGroupInput {
s.OptionsToInclude = v
return s
}
|
go
|
{
"resource": ""
}
|
q935
|
SetOptionDescription
|
train
|
func (s *Option) SetOptionDescription(v string) *Option {
s.OptionDescription = &v
return s
}
|
go
|
{
"resource": ""
}
|
q936
|
SetAllowsVpcAndNonVpcInstanceMemberships
|
train
|
func (s *OptionGroup) SetAllowsVpcAndNonVpcInstanceMemberships(v bool) *OptionGroup {
s.AllowsVpcAndNonVpcInstanceMemberships = &v
return s
}
|
go
|
{
"resource": ""
}
|
q937
|
SetOptionGroupArn
|
train
|
func (s *OptionGroup) SetOptionGroupArn(v string) *OptionGroup {
s.OptionGroupArn = &v
return s
}
|
go
|
{
"resource": ""
}
|
q938
|
SetDefaultPort
|
train
|
func (s *OptionGroupOption) SetDefaultPort(v int64) *OptionGroupOption {
s.DefaultPort = &v
return s
}
|
go
|
{
"resource": ""
}
|
q939
|
SetMinimumRequiredMinorEngineVersion
|
train
|
func (s *OptionGroupOption) SetMinimumRequiredMinorEngineVersion(v string) *OptionGroupOption {
s.MinimumRequiredMinorEngineVersion = &v
return s
}
|
go
|
{
"resource": ""
}
|
q940
|
SetOptionGroupOptionSettings
|
train
|
func (s *OptionGroupOption) SetOptionGroupOptionSettings(v []*OptionGroupOptionSetting) *OptionGroupOption {
s.OptionGroupOptionSettings = v
return s
}
|
go
|
{
"resource": ""
}
|
q941
|
SetOptionGroupOptionVersions
|
train
|
func (s *OptionGroupOption) SetOptionGroupOptionVersions(v []*OptionVersion) *OptionGroupOption {
s.OptionGroupOptionVersions = v
return s
}
|
go
|
{
"resource": ""
}
|
q942
|
SetOptionsConflictsWith
|
train
|
func (s *OptionGroupOption) SetOptionsConflictsWith(v []*string) *OptionGroupOption {
s.OptionsConflictsWith = v
return s
}
|
go
|
{
"resource": ""
}
|
q943
|
SetOptionsDependedOn
|
train
|
func (s *OptionGroupOption) SetOptionsDependedOn(v []*string) *OptionGroupOption {
s.OptionsDependedOn = v
return s
}
|
go
|
{
"resource": ""
}
|
q944
|
SetPortRequired
|
train
|
func (s *OptionGroupOption) SetPortRequired(v bool) *OptionGroupOption {
s.PortRequired = &v
return s
}
|
go
|
{
"resource": ""
}
|
q945
|
SetRequiresAutoMinorEngineVersionUpgrade
|
train
|
func (s *OptionGroupOption) SetRequiresAutoMinorEngineVersionUpgrade(v bool) *OptionGroupOption {
s.RequiresAutoMinorEngineVersionUpgrade = &v
return s
}
|
go
|
{
"resource": ""
}
|
q946
|
SetSupportsOptionVersionDowngrade
|
train
|
func (s *OptionGroupOption) SetSupportsOptionVersionDowngrade(v bool) *OptionGroupOption {
s.SupportsOptionVersionDowngrade = &v
return s
}
|
go
|
{
"resource": ""
}
|
q947
|
SetVpcOnly
|
train
|
func (s *OptionGroupOption) SetVpcOnly(v bool) *OptionGroupOption {
s.VpcOnly = &v
return s
}
|
go
|
{
"resource": ""
}
|
q948
|
SetMinimumEngineVersionPerAllowedValue
|
train
|
func (s *OptionGroupOptionSetting) SetMinimumEngineVersionPerAllowedValue(v []*MinimumEngineVersionPerAllowedValue) *OptionGroupOptionSetting {
s.MinimumEngineVersionPerAllowedValue = v
return s
}
|
go
|
{
"resource": ""
}
|
q949
|
SetSettingDescription
|
train
|
func (s *OptionGroupOptionSetting) SetSettingDescription(v string) *OptionGroupOptionSetting {
s.SettingDescription = &v
return s
}
|
go
|
{
"resource": ""
}
|
q950
|
SetSettingName
|
train
|
func (s *OptionGroupOptionSetting) SetSettingName(v string) *OptionGroupOptionSetting {
s.SettingName = &v
return s
}
|
go
|
{
"resource": ""
}
|
q951
|
SetIsCollection
|
train
|
func (s *OptionSetting) SetIsCollection(v bool) *OptionSetting {
s.IsCollection = &v
return s
}
|
go
|
{
"resource": ""
}
|
q952
|
SetAvailableProcessorFeatures
|
train
|
func (s *OrderableDBInstanceOption) SetAvailableProcessorFeatures(v []*AvailableProcessorFeature) *OrderableDBInstanceOption {
s.AvailableProcessorFeatures = v
return s
}
|
go
|
{
"resource": ""
}
|
q953
|
SetReservedDBInstance
|
train
|
func (s *PurchaseReservedDBInstancesOfferingOutput) SetReservedDBInstance(v *ReservedDBInstance) *PurchaseReservedDBInstancesOfferingOutput {
s.ReservedDBInstance = v
return s
}
|
go
|
{
"resource": ""
}
|
q954
|
SetRecurringChargeAmount
|
train
|
func (s *RecurringCharge) SetRecurringChargeAmount(v float64) *RecurringCharge {
s.RecurringChargeAmount = &v
return s
}
|
go
|
{
"resource": ""
}
|
q955
|
SetRecurringChargeFrequency
|
train
|
func (s *RecurringCharge) SetRecurringChargeFrequency(v string) *RecurringCharge {
s.RecurringChargeFrequency = &v
return s
}
|
go
|
{
"resource": ""
}
|
q956
|
SetReservedDBInstanceArn
|
train
|
func (s *ReservedDBInstance) SetReservedDBInstanceArn(v string) *ReservedDBInstance {
s.ReservedDBInstanceArn = &v
return s
}
|
go
|
{
"resource": ""
}
|
q957
|
SetSourceDbiResourceId
|
train
|
func (s *RestoreDBInstanceToPointInTimeInput) SetSourceDbiResourceId(v string) *RestoreDBInstanceToPointInTimeInput {
s.SourceDbiResourceId = &v
return s
}
|
go
|
{
"resource": ""
}
|
q958
|
SetEarliestTime
|
train
|
func (s *RestoreWindow) SetEarliestTime(v time.Time) *RestoreWindow {
s.EarliestTime = &v
return s
}
|
go
|
{
"resource": ""
}
|
q959
|
SetValidProcessorFeatures
|
train
|
func (s *ValidDBInstanceModificationsMessage) SetValidProcessorFeatures(v []*AvailableProcessorFeature) *ValidDBInstanceModificationsMessage {
s.ValidProcessorFeatures = v
return s
}
|
go
|
{
"resource": ""
}
|
q960
|
getPadder
|
train
|
func (client *DecryptionClient) getPadder(cekAlg string) Padder {
padder, ok := client.PadderRegistry[cekAlg]
if !ok {
padder, ok = client.PadderRegistry[cekAlg[strings.LastIndex(cekAlg, "/")+1:]]
if !ok {
return NoPadder
}
}
return padder
}
|
go
|
{
"resource": ""
}
|
q961
|
ParsePathsFromArgs
|
train
|
func ParsePathsFromArgs() {
flag.Parse()
for _, dir := range flag.Args() {
var conf loader.Config
conf.ParserMode = parser.ParseComments
conf.ImportWithTests(dir)
prog, err := conf.Load()
if err != nil {
panic(err)
}
r := renamer{prog, map[*token.File]bool{}}
r.parse()
if !*dryRun {
r.write()
}
}
}
|
go
|
{
"resource": ""
}
|
q962
|
SetGroupMember
|
train
|
func (s *CreateGroupMembershipOutput) SetGroupMember(v *GroupMember) *CreateGroupMembershipOutput {
s.GroupMember = v
return s
}
|
go
|
{
"resource": ""
}
|
q963
|
SetDashboardId
|
train
|
func (s *GetDashboardEmbedUrlInput) SetDashboardId(v string) *GetDashboardEmbedUrlInput {
s.DashboardId = &v
return s
}
|
go
|
{
"resource": ""
}
|
q964
|
SetResetDisabled
|
train
|
func (s *GetDashboardEmbedUrlInput) SetResetDisabled(v bool) *GetDashboardEmbedUrlInput {
s.ResetDisabled = &v
return s
}
|
go
|
{
"resource": ""
}
|
q965
|
SetSessionLifetimeInMinutes
|
train
|
func (s *GetDashboardEmbedUrlInput) SetSessionLifetimeInMinutes(v int64) *GetDashboardEmbedUrlInput {
s.SessionLifetimeInMinutes = &v
return s
}
|
go
|
{
"resource": ""
}
|
q966
|
SetUndoRedoDisabled
|
train
|
func (s *GetDashboardEmbedUrlInput) SetUndoRedoDisabled(v bool) *GetDashboardEmbedUrlInput {
s.UndoRedoDisabled = &v
return s
}
|
go
|
{
"resource": ""
}
|
q967
|
SetEmbedUrl
|
train
|
func (s *GetDashboardEmbedUrlOutput) SetEmbedUrl(v string) *GetDashboardEmbedUrlOutput {
s.EmbedUrl = &v
return s
}
|
go
|
{
"resource": ""
}
|
q968
|
SetGroupMemberList
|
train
|
func (s *ListGroupMembershipsOutput) SetGroupMemberList(v []*GroupMember) *ListGroupMembershipsOutput {
s.GroupMemberList = v
return s
}
|
go
|
{
"resource": ""
}
|
q969
|
SetUserList
|
train
|
func (s *ListUsersOutput) SetUserList(v []*User) *ListUsersOutput {
s.UserList = v
return s
}
|
go
|
{
"resource": ""
}
|
q970
|
SetIamArn
|
train
|
func (s *RegisterUserInput) SetIamArn(v string) *RegisterUserInput {
s.IamArn = &v
return s
}
|
go
|
{
"resource": ""
}
|
q971
|
SetSessionName
|
train
|
func (s *RegisterUserInput) SetSessionName(v string) *RegisterUserInput {
s.SessionName = &v
return s
}
|
go
|
{
"resource": ""
}
|
q972
|
SetUserInvitationUrl
|
train
|
func (s *RegisterUserOutput) SetUserInvitationUrl(v string) *RegisterUserOutput {
s.UserInvitationUrl = &v
return s
}
|
go
|
{
"resource": ""
}
|
q973
|
updatePredictEndpoint
|
train
|
func updatePredictEndpoint(r *request.Request) {
if !r.ParamsFilled() {
return
}
r.ClientInfo.Endpoint = *r.Params.(*PredictInput).PredictEndpoint
uri, err := url.Parse(r.ClientInfo.Endpoint)
if err != nil {
r.Error = err
return
}
r.HTTPRequest.URL = uri
}
|
go
|
{
"resource": ""
}
|
q974
|
MarshalJSON
|
train
|
func (t AWSEpochTime) MarshalJSON() ([]byte, error) {
return []byte(fmt.Sprintf(`{"AWS:EpochTime":%d}`, t.UTC().Unix())), nil
}
|
go
|
{
"resource": ""
}
|
q975
|
UnmarshalJSON
|
train
|
func (t *AWSEpochTime) UnmarshalJSON(data []byte) error {
var epochTime struct {
Sec int64 `json:"AWS:EpochTime"`
}
err := json.Unmarshal(data, &epochTime)
if err != nil {
return err
}
t.Time = time.Unix(epochTime.Sec, 0).UTC()
return nil
}
|
go
|
{
"resource": ""
}
|
q976
|
Validate
|
train
|
func (p *Policy) Validate() error {
if len(p.Statements) == 0 {
return fmt.Errorf("at least one policy statement is required")
}
for i, s := range p.Statements {
if s.Resource == "" {
return fmt.Errorf("statement at index %d does not have a resource", i)
}
if !isASCII(s.Resource) {
return fmt.Errorf("unable to sign resource, [%s]. "+
"Resources must only contain ascii characters. "+
"Hostnames with unicode should be encoded as Punycode, (e.g. golang.org/x/net/idna), "+
"and URL unicode path/query characters should be escaped.", s.Resource)
}
}
return nil
}
|
go
|
{
"resource": ""
}
|
q977
|
CreateResource
|
train
|
func CreateResource(scheme, u string) (string, error) {
scheme = strings.ToLower(scheme)
if scheme == "http" || scheme == "https" || scheme == "http*" || scheme == "*" {
return u, nil
}
if scheme == "rtmp" {
parsed, err := url.Parse(u)
if err != nil {
return "", fmt.Errorf("unable to parse rtmp URL, err: %s", err)
}
rtmpURL := strings.TrimLeft(parsed.Path, "/")
if parsed.RawQuery != "" {
rtmpURL = fmt.Sprintf("%s?%s", rtmpURL, parsed.RawQuery)
}
return rtmpURL, nil
}
return "", fmt.Errorf("invalid URL scheme must be http, https, or rtmp. Provided: %s", scheme)
}
|
go
|
{
"resource": ""
}
|
q978
|
encodePolicy
|
train
|
func encodePolicy(p *Policy) (b64Policy, jsonPolicy []byte, err error) {
jsonPolicy, err = encodePolicyJSON(p)
if err != nil {
return nil, nil, fmt.Errorf("failed to encode policy, %s", err.Error())
}
// Remove leading and trailing white space, JSON encoding will note include
// whitespace within the encoding.
jsonPolicy = bytes.TrimSpace(jsonPolicy)
b64Policy = make([]byte, base64.StdEncoding.EncodedLen(len(jsonPolicy)))
base64.StdEncoding.Encode(b64Policy, jsonPolicy)
return b64Policy, jsonPolicy, nil
}
|
go
|
{
"resource": ""
}
|
q979
|
signEncodedPolicy
|
train
|
func signEncodedPolicy(randReader io.Reader, jsonPolicy []byte, privKey *rsa.PrivateKey) ([]byte, error) {
hash := sha1.New()
if _, err := bytes.NewReader(jsonPolicy).WriteTo(hash); err != nil {
return nil, fmt.Errorf("failed to calculate signing hash, %s", err.Error())
}
sig, err := rsa.SignPKCS1v15(randReader, privKey, crypto.SHA1, hash.Sum(nil))
if err != nil {
return nil, fmt.Errorf("failed to sign policy, %s", err.Error())
}
b64Sig := make([]byte, base64.StdEncoding.EncodedLen(len(sig)))
base64.StdEncoding.Encode(b64Sig, sig)
return b64Sig, nil
}
|
go
|
{
"resource": ""
}
|
q980
|
awsEscapeEncoded
|
train
|
func awsEscapeEncoded(b []byte) {
for i, v := range b {
if r, ok := invalidEncodedChar[v]; ok {
b[i] = r
}
}
}
|
go
|
{
"resource": ""
}
|
q981
|
SetWindowsResponse
|
train
|
func (s *DeleteFileSystemOutput) SetWindowsResponse(v *DeleteFileSystemWindowsResponse) *DeleteFileSystemOutput {
s.WindowsResponse = v
return s
}
|
go
|
{
"resource": ""
}
|
q982
|
SetSkipFinalBackup
|
train
|
func (s *DeleteFileSystemWindowsConfiguration) SetSkipFinalBackup(v bool) *DeleteFileSystemWindowsConfiguration {
s.SkipFinalBackup = &v
return s
}
|
go
|
{
"resource": ""
}
|
q983
|
SetFinalBackupId
|
train
|
func (s *DeleteFileSystemWindowsResponse) SetFinalBackupId(v string) *DeleteFileSystemWindowsResponse {
s.FinalBackupId = &v
return s
}
|
go
|
{
"resource": ""
}
|
q984
|
SetBackupIds
|
train
|
func (s *DescribeBackupsInput) SetBackupIds(v []*string) *DescribeBackupsInput {
s.BackupIds = v
return s
}
|
go
|
{
"resource": ""
}
|
q985
|
SetBackups
|
train
|
func (s *DescribeBackupsOutput) SetBackups(v []*Backup) *DescribeBackupsOutput {
s.Backups = v
return s
}
|
go
|
{
"resource": ""
}
|
q986
|
SetFileSystemIds
|
train
|
func (s *DescribeFileSystemsInput) SetFileSystemIds(v []*string) *DescribeFileSystemsInput {
s.FileSystemIds = v
return s
}
|
go
|
{
"resource": ""
}
|
q987
|
SetNetworkInterfaceIds
|
train
|
func (s *FileSystem) SetNetworkInterfaceIds(v []*string) *FileSystem {
s.NetworkInterfaceIds = v
return s
}
|
go
|
{
"resource": ""
}
|
q988
|
SetDataRepositoryConfiguration
|
train
|
func (s *LustreFileSystemConfiguration) SetDataRepositoryConfiguration(v *DataRepositoryConfiguration) *LustreFileSystemConfiguration {
s.DataRepositoryConfiguration = v
return s
}
|
go
|
{
"resource": ""
}
|
q989
|
SetMaintenanceOperationsInProgress
|
train
|
func (s *WindowsFileSystemConfiguration) SetMaintenanceOperationsInProgress(v []*string) *WindowsFileSystemConfiguration {
s.MaintenanceOperationsInProgress = v
return s
}
|
go
|
{
"resource": ""
}
|
q990
|
SetTargetVersions
|
train
|
func (s *CompatibleVersionsMap) SetTargetVersions(v []*string) *CompatibleVersionsMap {
s.TargetVersions = v
return s
}
|
go
|
{
"resource": ""
}
|
q991
|
SetLimitsByRole
|
train
|
func (s *DescribeElasticsearchInstanceTypeLimitsOutput) SetLimitsByRole(v map[string]*Limits) *DescribeElasticsearchInstanceTypeLimitsOutput {
s.LimitsByRole = v
return s
}
|
go
|
{
"resource": ""
}
|
q992
|
SetReservedElasticsearchInstanceOfferings
|
train
|
func (s *DescribeReservedElasticsearchInstanceOfferingsOutput) SetReservedElasticsearchInstanceOfferings(v []*ReservedElasticsearchInstanceOffering) *DescribeReservedElasticsearchInstanceOfferingsOutput {
s.ReservedElasticsearchInstanceOfferings = v
return s
}
|
go
|
{
"resource": ""
}
|
q993
|
SetReservedElasticsearchInstances
|
train
|
func (s *DescribeReservedElasticsearchInstancesOutput) SetReservedElasticsearchInstances(v []*ReservedElasticsearchInstance) *DescribeReservedElasticsearchInstancesOutput {
s.ReservedElasticsearchInstances = v
return s
}
|
go
|
{
"resource": ""
}
|
q994
|
SetEBSEnabled
|
train
|
func (s *EBSOptions) SetEBSEnabled(v bool) *EBSOptions {
s.EBSEnabled = &v
return s
}
|
go
|
{
"resource": ""
}
|
q995
|
SetDedicatedMasterCount
|
train
|
func (s *ElasticsearchClusterConfig) SetDedicatedMasterCount(v int64) *ElasticsearchClusterConfig {
s.DedicatedMasterCount = &v
return s
}
|
go
|
{
"resource": ""
}
|
q996
|
SetDedicatedMasterEnabled
|
train
|
func (s *ElasticsearchClusterConfig) SetDedicatedMasterEnabled(v bool) *ElasticsearchClusterConfig {
s.DedicatedMasterEnabled = &v
return s
}
|
go
|
{
"resource": ""
}
|
q997
|
SetDedicatedMasterType
|
train
|
func (s *ElasticsearchClusterConfig) SetDedicatedMasterType(v string) *ElasticsearchClusterConfig {
s.DedicatedMasterType = &v
return s
}
|
go
|
{
"resource": ""
}
|
q998
|
SetZoneAwarenessConfig
|
train
|
func (s *ElasticsearchClusterConfig) SetZoneAwarenessConfig(v *ZoneAwarenessConfig) *ElasticsearchClusterConfig {
s.ZoneAwarenessConfig = v
return s
}
|
go
|
{
"resource": ""
}
|
q999
|
SetZoneAwarenessEnabled
|
train
|
func (s *ElasticsearchClusterConfig) SetZoneAwarenessEnabled(v bool) *ElasticsearchClusterConfig {
s.ZoneAwarenessEnabled = &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.