id
int32 0
167k
| repo
stringlengths 5
54
| path
stringlengths 4
155
| func_name
stringlengths 1
118
| original_string
stringlengths 52
85.5k
| language
stringclasses 1
value | code
stringlengths 52
85.5k
| code_tokens
listlengths 21
1.41k
| docstring
stringlengths 6
2.61k
| docstring_tokens
listlengths 3
215
| sha
stringlengths 40
40
| url
stringlengths 85
252
|
---|---|---|---|---|---|---|---|---|---|---|---|
2,300 |
aws/aws-sdk-go
|
service/fms/api.go
|
SetViolatorCount
|
func (s *EvaluationResult) SetViolatorCount(v int64) *EvaluationResult {
s.ViolatorCount = &v
return s
}
|
go
|
func (s *EvaluationResult) SetViolatorCount(v int64) *EvaluationResult {
s.ViolatorCount = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"EvaluationResult",
")",
"SetViolatorCount",
"(",
"v",
"int64",
")",
"*",
"EvaluationResult",
"{",
"s",
".",
"ViolatorCount",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetViolatorCount sets the ViolatorCount field's value.
|
[
"SetViolatorCount",
"sets",
"the",
"ViolatorCount",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/fms/api.go#L1742-L1745
|
2,301 |
aws/aws-sdk-go
|
service/fms/api.go
|
SetRoleStatus
|
func (s *GetAdminAccountOutput) SetRoleStatus(v string) *GetAdminAccountOutput {
s.RoleStatus = &v
return s
}
|
go
|
func (s *GetAdminAccountOutput) SetRoleStatus(v string) *GetAdminAccountOutput {
s.RoleStatus = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"GetAdminAccountOutput",
")",
"SetRoleStatus",
"(",
"v",
"string",
")",
"*",
"GetAdminAccountOutput",
"{",
"s",
".",
"RoleStatus",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetRoleStatus sets the RoleStatus field's value.
|
[
"SetRoleStatus",
"sets",
"the",
"RoleStatus",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/fms/api.go#L1788-L1791
|
2,302 |
aws/aws-sdk-go
|
service/fms/api.go
|
SetPolicyComplianceDetail
|
func (s *GetComplianceDetailOutput) SetPolicyComplianceDetail(v *PolicyComplianceDetail) *GetComplianceDetailOutput {
s.PolicyComplianceDetail = v
return s
}
|
go
|
func (s *GetComplianceDetailOutput) SetPolicyComplianceDetail(v *PolicyComplianceDetail) *GetComplianceDetailOutput {
s.PolicyComplianceDetail = v
return s
}
|
[
"func",
"(",
"s",
"*",
"GetComplianceDetailOutput",
")",
"SetPolicyComplianceDetail",
"(",
"v",
"*",
"PolicyComplianceDetail",
")",
"*",
"GetComplianceDetailOutput",
"{",
"s",
".",
"PolicyComplianceDetail",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetPolicyComplianceDetail sets the PolicyComplianceDetail field's value.
|
[
"SetPolicyComplianceDetail",
"sets",
"the",
"PolicyComplianceDetail",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/fms/api.go#L1872-L1875
|
2,303 |
aws/aws-sdk-go
|
service/fms/api.go
|
SetAdminAccountId
|
func (s *GetProtectionStatusOutput) SetAdminAccountId(v string) *GetProtectionStatusOutput {
s.AdminAccountId = &v
return s
}
|
go
|
func (s *GetProtectionStatusOutput) SetAdminAccountId(v string) *GetProtectionStatusOutput {
s.AdminAccountId = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"GetProtectionStatusOutput",
")",
"SetAdminAccountId",
"(",
"v",
"string",
")",
"*",
"GetProtectionStatusOutput",
"{",
"s",
".",
"AdminAccountId",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetAdminAccountId sets the AdminAccountId field's value.
|
[
"SetAdminAccountId",
"sets",
"the",
"AdminAccountId",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/fms/api.go#L2155-L2158
|
2,304 |
aws/aws-sdk-go
|
service/fms/api.go
|
SetPolicyComplianceStatusList
|
func (s *ListComplianceStatusOutput) SetPolicyComplianceStatusList(v []*PolicyComplianceStatus) *ListComplianceStatusOutput {
s.PolicyComplianceStatusList = v
return s
}
|
go
|
func (s *ListComplianceStatusOutput) SetPolicyComplianceStatusList(v []*PolicyComplianceStatus) *ListComplianceStatusOutput {
s.PolicyComplianceStatusList = v
return s
}
|
[
"func",
"(",
"s",
"*",
"ListComplianceStatusOutput",
")",
"SetPolicyComplianceStatusList",
"(",
"v",
"[",
"]",
"*",
"PolicyComplianceStatus",
")",
"*",
"ListComplianceStatusOutput",
"{",
"s",
".",
"PolicyComplianceStatusList",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetPolicyComplianceStatusList sets the PolicyComplianceStatusList field's value.
|
[
"SetPolicyComplianceStatusList",
"sets",
"the",
"PolicyComplianceStatusList",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/fms/api.go#L2283-L2286
|
2,305 |
aws/aws-sdk-go
|
service/fms/api.go
|
SetPolicyList
|
func (s *ListPoliciesOutput) SetPolicyList(v []*PolicySummary) *ListPoliciesOutput {
s.PolicyList = v
return s
}
|
go
|
func (s *ListPoliciesOutput) SetPolicyList(v []*PolicySummary) *ListPoliciesOutput {
s.PolicyList = v
return s
}
|
[
"func",
"(",
"s",
"*",
"ListPoliciesOutput",
")",
"SetPolicyList",
"(",
"v",
"[",
"]",
"*",
"PolicySummary",
")",
"*",
"ListPoliciesOutput",
"{",
"s",
".",
"PolicyList",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetPolicyList sets the PolicyList field's value.
|
[
"SetPolicyList",
"sets",
"the",
"PolicyList",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/fms/api.go#L2466-L2469
|
2,306 |
aws/aws-sdk-go
|
service/fms/api.go
|
SetExcludeMap
|
func (s *Policy) SetExcludeMap(v map[string][]*string) *Policy {
s.ExcludeMap = v
return s
}
|
go
|
func (s *Policy) SetExcludeMap(v map[string][]*string) *Policy {
s.ExcludeMap = v
return s
}
|
[
"func",
"(",
"s",
"*",
"Policy",
")",
"SetExcludeMap",
"(",
"v",
"map",
"[",
"string",
"]",
"[",
"]",
"*",
"string",
")",
"*",
"Policy",
"{",
"s",
".",
"ExcludeMap",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetExcludeMap sets the ExcludeMap field's value.
|
[
"SetExcludeMap",
"sets",
"the",
"ExcludeMap",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/fms/api.go#L2602-L2605
|
2,307 |
aws/aws-sdk-go
|
service/fms/api.go
|
SetExcludeResourceTags
|
func (s *Policy) SetExcludeResourceTags(v bool) *Policy {
s.ExcludeResourceTags = &v
return s
}
|
go
|
func (s *Policy) SetExcludeResourceTags(v bool) *Policy {
s.ExcludeResourceTags = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"Policy",
")",
"SetExcludeResourceTags",
"(",
"v",
"bool",
")",
"*",
"Policy",
"{",
"s",
".",
"ExcludeResourceTags",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetExcludeResourceTags sets the ExcludeResourceTags field's value.
|
[
"SetExcludeResourceTags",
"sets",
"the",
"ExcludeResourceTags",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/fms/api.go#L2608-L2611
|
2,308 |
aws/aws-sdk-go
|
service/fms/api.go
|
SetIncludeMap
|
func (s *Policy) SetIncludeMap(v map[string][]*string) *Policy {
s.IncludeMap = v
return s
}
|
go
|
func (s *Policy) SetIncludeMap(v map[string][]*string) *Policy {
s.IncludeMap = v
return s
}
|
[
"func",
"(",
"s",
"*",
"Policy",
")",
"SetIncludeMap",
"(",
"v",
"map",
"[",
"string",
"]",
"[",
"]",
"*",
"string",
")",
"*",
"Policy",
"{",
"s",
".",
"IncludeMap",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetIncludeMap sets the IncludeMap field's value.
|
[
"SetIncludeMap",
"sets",
"the",
"IncludeMap",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/fms/api.go#L2614-L2617
|
2,309 |
aws/aws-sdk-go
|
service/fms/api.go
|
SetPolicyUpdateToken
|
func (s *Policy) SetPolicyUpdateToken(v string) *Policy {
s.PolicyUpdateToken = &v
return s
}
|
go
|
func (s *Policy) SetPolicyUpdateToken(v string) *Policy {
s.PolicyUpdateToken = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"Policy",
")",
"SetPolicyUpdateToken",
"(",
"v",
"string",
")",
"*",
"Policy",
"{",
"s",
".",
"PolicyUpdateToken",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetPolicyUpdateToken sets the PolicyUpdateToken field's value.
|
[
"SetPolicyUpdateToken",
"sets",
"the",
"PolicyUpdateToken",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/fms/api.go#L2632-L2635
|
2,310 |
aws/aws-sdk-go
|
service/fms/api.go
|
SetResourceTypeList
|
func (s *Policy) SetResourceTypeList(v []*string) *Policy {
s.ResourceTypeList = v
return s
}
|
go
|
func (s *Policy) SetResourceTypeList(v []*string) *Policy {
s.ResourceTypeList = v
return s
}
|
[
"func",
"(",
"s",
"*",
"Policy",
")",
"SetResourceTypeList",
"(",
"v",
"[",
"]",
"*",
"string",
")",
"*",
"Policy",
"{",
"s",
".",
"ResourceTypeList",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetResourceTypeList sets the ResourceTypeList field's value.
|
[
"SetResourceTypeList",
"sets",
"the",
"ResourceTypeList",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/fms/api.go#L2656-L2659
|
2,311 |
aws/aws-sdk-go
|
service/fms/api.go
|
SetSecurityServicePolicyData
|
func (s *Policy) SetSecurityServicePolicyData(v *SecurityServicePolicyData) *Policy {
s.SecurityServicePolicyData = v
return s
}
|
go
|
func (s *Policy) SetSecurityServicePolicyData(v *SecurityServicePolicyData) *Policy {
s.SecurityServicePolicyData = v
return s
}
|
[
"func",
"(",
"s",
"*",
"Policy",
")",
"SetSecurityServicePolicyData",
"(",
"v",
"*",
"SecurityServicePolicyData",
")",
"*",
"Policy",
"{",
"s",
".",
"SecurityServicePolicyData",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetSecurityServicePolicyData sets the SecurityServicePolicyData field's value.
|
[
"SetSecurityServicePolicyData",
"sets",
"the",
"SecurityServicePolicyData",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/fms/api.go#L2662-L2665
|
2,312 |
aws/aws-sdk-go
|
service/fms/api.go
|
SetExpiredAt
|
func (s *PolicyComplianceDetail) SetExpiredAt(v time.Time) *PolicyComplianceDetail {
s.ExpiredAt = &v
return s
}
|
go
|
func (s *PolicyComplianceDetail) SetExpiredAt(v time.Time) *PolicyComplianceDetail {
s.ExpiredAt = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"PolicyComplianceDetail",
")",
"SetExpiredAt",
"(",
"v",
"time",
".",
"Time",
")",
"*",
"PolicyComplianceDetail",
"{",
"s",
".",
"ExpiredAt",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetExpiredAt sets the ExpiredAt field's value.
|
[
"SetExpiredAt",
"sets",
"the",
"ExpiredAt",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/fms/api.go#L2717-L2720
|
2,313 |
aws/aws-sdk-go
|
service/fms/api.go
|
SetViolators
|
func (s *PolicyComplianceDetail) SetViolators(v []*ComplianceViolator) *PolicyComplianceDetail {
s.Violators = v
return s
}
|
go
|
func (s *PolicyComplianceDetail) SetViolators(v []*ComplianceViolator) *PolicyComplianceDetail {
s.Violators = v
return s
}
|
[
"func",
"(",
"s",
"*",
"PolicyComplianceDetail",
")",
"SetViolators",
"(",
"v",
"[",
"]",
"*",
"ComplianceViolator",
")",
"*",
"PolicyComplianceDetail",
"{",
"s",
".",
"Violators",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetViolators sets the Violators field's value.
|
[
"SetViolators",
"sets",
"the",
"Violators",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/fms/api.go#L2747-L2750
|
2,314 |
aws/aws-sdk-go
|
service/fms/api.go
|
SetSecurityServiceType
|
func (s *PolicySummary) SetSecurityServiceType(v string) *PolicySummary {
s.SecurityServiceType = &v
return s
}
|
go
|
func (s *PolicySummary) SetSecurityServiceType(v string) *PolicySummary {
s.SecurityServiceType = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"PolicySummary",
")",
"SetSecurityServiceType",
"(",
"v",
"string",
")",
"*",
"PolicySummary",
"{",
"s",
".",
"SecurityServiceType",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetSecurityServiceType sets the SecurityServiceType field's value.
|
[
"SetSecurityServiceType",
"sets",
"the",
"SecurityServiceType",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/fms/api.go#L2903-L2906
|
2,315 |
aws/aws-sdk-go
|
service/fms/api.go
|
SetManagedServiceData
|
func (s *SecurityServicePolicyData) SetManagedServiceData(v string) *SecurityServicePolicyData {
s.ManagedServiceData = &v
return s
}
|
go
|
func (s *SecurityServicePolicyData) SetManagedServiceData(v string) *SecurityServicePolicyData {
s.ManagedServiceData = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"SecurityServicePolicyData",
")",
"SetManagedServiceData",
"(",
"v",
"string",
")",
"*",
"SecurityServicePolicyData",
"{",
"s",
".",
"ManagedServiceData",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetManagedServiceData sets the ManagedServiceData field's value.
|
[
"SetManagedServiceData",
"sets",
"the",
"ManagedServiceData",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/fms/api.go#L3164-L3167
|
2,316 |
aws/aws-sdk-go
|
service/mobileanalytics/api.go
|
SetClientContextEncoding
|
func (s *PutEventsInput) SetClientContextEncoding(v string) *PutEventsInput {
s.ClientContextEncoding = &v
return s
}
|
go
|
func (s *PutEventsInput) SetClientContextEncoding(v string) *PutEventsInput {
s.ClientContextEncoding = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"PutEventsInput",
")",
"SetClientContextEncoding",
"(",
"v",
"string",
")",
"*",
"PutEventsInput",
"{",
"s",
".",
"ClientContextEncoding",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetClientContextEncoding sets the ClientContextEncoding field's value.
|
[
"SetClientContextEncoding",
"sets",
"the",
"ClientContextEncoding",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/mobileanalytics/api.go#L264-L267
|
2,317 |
aws/aws-sdk-go
|
service/acm/waiters.go
|
WaitUntilCertificateValidated
|
func (c *ACM) WaitUntilCertificateValidated(input *DescribeCertificateInput) error {
return c.WaitUntilCertificateValidatedWithContext(aws.BackgroundContext(), input)
}
|
go
|
func (c *ACM) WaitUntilCertificateValidated(input *DescribeCertificateInput) error {
return c.WaitUntilCertificateValidatedWithContext(aws.BackgroundContext(), input)
}
|
[
"func",
"(",
"c",
"*",
"ACM",
")",
"WaitUntilCertificateValidated",
"(",
"input",
"*",
"DescribeCertificateInput",
")",
"error",
"{",
"return",
"c",
".",
"WaitUntilCertificateValidatedWithContext",
"(",
"aws",
".",
"BackgroundContext",
"(",
")",
",",
"input",
")",
"\n",
"}"
] |
// WaitUntilCertificateValidated uses the ACM API operation
// DescribeCertificate to wait for a condition to be met before returning.
// If the condition is not met within the max attempt window, an error will
// be returned.
|
[
"WaitUntilCertificateValidated",
"uses",
"the",
"ACM",
"API",
"operation",
"DescribeCertificate",
"to",
"wait",
"for",
"a",
"condition",
"to",
"be",
"met",
"before",
"returning",
".",
"If",
"the",
"condition",
"is",
"not",
"met",
"within",
"the",
"max",
"attempt",
"window",
"an",
"error",
"will",
"be",
"returned",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/acm/waiters.go#L16-L18
|
2,318 |
aws/aws-sdk-go
|
service/worklink/api.go
|
SetAcmCertificateArn
|
func (s *AssociateDomainInput) SetAcmCertificateArn(v string) *AssociateDomainInput {
s.AcmCertificateArn = &v
return s
}
|
go
|
func (s *AssociateDomainInput) SetAcmCertificateArn(v string) *AssociateDomainInput {
s.AcmCertificateArn = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"AssociateDomainInput",
")",
"SetAcmCertificateArn",
"(",
"v",
"string",
")",
"*",
"AssociateDomainInput",
"{",
"s",
".",
"AcmCertificateArn",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetAcmCertificateArn sets the AcmCertificateArn field's value.
|
[
"SetAcmCertificateArn",
"sets",
"the",
"AcmCertificateArn",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/worklink/api.go#L2776-L2779
|
2,319 |
aws/aws-sdk-go
|
service/worklink/api.go
|
SetFirstAccessedTime
|
func (s *DescribeDeviceOutput) SetFirstAccessedTime(v time.Time) *DescribeDeviceOutput {
s.FirstAccessedTime = &v
return s
}
|
go
|
func (s *DescribeDeviceOutput) SetFirstAccessedTime(v time.Time) *DescribeDeviceOutput {
s.FirstAccessedTime = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"DescribeDeviceOutput",
")",
"SetFirstAccessedTime",
"(",
"v",
"time",
".",
"Time",
")",
"*",
"DescribeDeviceOutput",
"{",
"s",
".",
"FirstAccessedTime",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetFirstAccessedTime sets the FirstAccessedTime field's value.
|
[
"SetFirstAccessedTime",
"sets",
"the",
"FirstAccessedTime",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/worklink/api.go#L3287-L3290
|
2,320 |
aws/aws-sdk-go
|
service/worklink/api.go
|
SetLastAccessedTime
|
func (s *DescribeDeviceOutput) SetLastAccessedTime(v time.Time) *DescribeDeviceOutput {
s.LastAccessedTime = &v
return s
}
|
go
|
func (s *DescribeDeviceOutput) SetLastAccessedTime(v time.Time) *DescribeDeviceOutput {
s.LastAccessedTime = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"DescribeDeviceOutput",
")",
"SetLastAccessedTime",
"(",
"v",
"time",
".",
"Time",
")",
"*",
"DescribeDeviceOutput",
"{",
"s",
".",
"LastAccessedTime",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetLastAccessedTime sets the LastAccessedTime field's value.
|
[
"SetLastAccessedTime",
"sets",
"the",
"LastAccessedTime",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/worklink/api.go#L3293-L3296
|
2,321 |
aws/aws-sdk-go
|
service/worklink/api.go
|
SetPatchLevel
|
func (s *DescribeDeviceOutput) SetPatchLevel(v string) *DescribeDeviceOutput {
s.PatchLevel = &v
return s
}
|
go
|
func (s *DescribeDeviceOutput) SetPatchLevel(v string) *DescribeDeviceOutput {
s.PatchLevel = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"DescribeDeviceOutput",
")",
"SetPatchLevel",
"(",
"v",
"string",
")",
"*",
"DescribeDeviceOutput",
"{",
"s",
".",
"PatchLevel",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetPatchLevel sets the PatchLevel field's value.
|
[
"SetPatchLevel",
"sets",
"the",
"PatchLevel",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/worklink/api.go#L3323-L3326
|
2,322 |
aws/aws-sdk-go
|
service/worklink/api.go
|
SetServiceProviderSamlMetadata
|
func (s *DescribeIdentityProviderConfigurationOutput) SetServiceProviderSamlMetadata(v string) *DescribeIdentityProviderConfigurationOutput {
s.ServiceProviderSamlMetadata = &v
return s
}
|
go
|
func (s *DescribeIdentityProviderConfigurationOutput) SetServiceProviderSamlMetadata(v string) *DescribeIdentityProviderConfigurationOutput {
s.ServiceProviderSamlMetadata = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"DescribeIdentityProviderConfigurationOutput",
")",
"SetServiceProviderSamlMetadata",
"(",
"v",
"string",
")",
"*",
"DescribeIdentityProviderConfigurationOutput",
"{",
"s",
".",
"ServiceProviderSamlMetadata",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetServiceProviderSamlMetadata sets the ServiceProviderSamlMetadata field's value.
|
[
"SetServiceProviderSamlMetadata",
"sets",
"the",
"ServiceProviderSamlMetadata",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/worklink/api.go#L3700-L3703
|
2,323 |
aws/aws-sdk-go
|
service/worklink/api.go
|
SetFleetSummaryList
|
func (s *ListFleetsOutput) SetFleetSummaryList(v []*FleetSummary) *ListFleetsOutput {
s.FleetSummaryList = v
return s
}
|
go
|
func (s *ListFleetsOutput) SetFleetSummaryList(v []*FleetSummary) *ListFleetsOutput {
s.FleetSummaryList = v
return s
}
|
[
"func",
"(",
"s",
"*",
"ListFleetsOutput",
")",
"SetFleetSummaryList",
"(",
"v",
"[",
"]",
"*",
"FleetSummary",
")",
"*",
"ListFleetsOutput",
"{",
"s",
".",
"FleetSummaryList",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetFleetSummaryList sets the FleetSummaryList field's value.
|
[
"SetFleetSummaryList",
"sets",
"the",
"FleetSummaryList",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/worklink/api.go#L4385-L4388
|
2,324 |
aws/aws-sdk-go
|
service/worklink/api.go
|
SetWebsiteCertificateAuthorities
|
func (s *ListWebsiteCertificateAuthoritiesOutput) SetWebsiteCertificateAuthorities(v []*WebsiteCaSummary) *ListWebsiteCertificateAuthoritiesOutput {
s.WebsiteCertificateAuthorities = v
return s
}
|
go
|
func (s *ListWebsiteCertificateAuthoritiesOutput) SetWebsiteCertificateAuthorities(v []*WebsiteCaSummary) *ListWebsiteCertificateAuthoritiesOutput {
s.WebsiteCertificateAuthorities = v
return s
}
|
[
"func",
"(",
"s",
"*",
"ListWebsiteCertificateAuthoritiesOutput",
")",
"SetWebsiteCertificateAuthorities",
"(",
"v",
"[",
"]",
"*",
"WebsiteCaSummary",
")",
"*",
"ListWebsiteCertificateAuthoritiesOutput",
"{",
"s",
".",
"WebsiteCertificateAuthorities",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetWebsiteCertificateAuthorities sets the WebsiteCertificateAuthorities field's value.
|
[
"SetWebsiteCertificateAuthorities",
"sets",
"the",
"WebsiteCertificateAuthorities",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/worklink/api.go#L4490-L4493
|
2,325 |
aws/aws-sdk-go
|
service/s3/host_style_bucket.go
|
Continue
|
func (b operationBlacklist) Continue(r *request.Request) bool {
for i := 0; i < len(b); i++ {
if b[i] == r.Operation.Name {
return false
}
}
return true
}
|
go
|
func (b operationBlacklist) Continue(r *request.Request) bool {
for i := 0; i < len(b); i++ {
if b[i] == r.Operation.Name {
return false
}
}
return true
}
|
[
"func",
"(",
"b",
"operationBlacklist",
")",
"Continue",
"(",
"r",
"*",
"request",
".",
"Request",
")",
"bool",
"{",
"for",
"i",
":=",
"0",
";",
"i",
"<",
"len",
"(",
"b",
")",
";",
"i",
"++",
"{",
"if",
"b",
"[",
"i",
"]",
"==",
"r",
".",
"Operation",
".",
"Name",
"{",
"return",
"false",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"true",
"\n",
"}"
] |
// Continue will return true of the Request's operation name is not
// in the blacklist. False otherwise.
|
[
"Continue",
"will",
"return",
"true",
"of",
"the",
"Request",
"s",
"operation",
"name",
"is",
"not",
"in",
"the",
"blacklist",
".",
"False",
"otherwise",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/s3/host_style_bucket.go#L20-L27
|
2,326 |
aws/aws-sdk-go
|
service/s3/host_style_bucket.go
|
updateEndpointForS3Config
|
func updateEndpointForS3Config(r *request.Request) {
forceHostStyle := aws.BoolValue(r.Config.S3ForcePathStyle)
accelerate := aws.BoolValue(r.Config.S3UseAccelerate)
if accelerate && accelerateOpBlacklist.Continue(r) {
if forceHostStyle {
if r.Config.Logger != nil {
r.Config.Logger.Log("ERROR: aws.Config.S3UseAccelerate is not compatible with aws.Config.S3ForcePathStyle, ignoring S3ForcePathStyle.")
}
}
updateEndpointForAccelerate(r)
} else if !forceHostStyle && r.Operation.Name != opGetBucketLocation {
updateEndpointForHostStyle(r)
}
}
|
go
|
func updateEndpointForS3Config(r *request.Request) {
forceHostStyle := aws.BoolValue(r.Config.S3ForcePathStyle)
accelerate := aws.BoolValue(r.Config.S3UseAccelerate)
if accelerate && accelerateOpBlacklist.Continue(r) {
if forceHostStyle {
if r.Config.Logger != nil {
r.Config.Logger.Log("ERROR: aws.Config.S3UseAccelerate is not compatible with aws.Config.S3ForcePathStyle, ignoring S3ForcePathStyle.")
}
}
updateEndpointForAccelerate(r)
} else if !forceHostStyle && r.Operation.Name != opGetBucketLocation {
updateEndpointForHostStyle(r)
}
}
|
[
"func",
"updateEndpointForS3Config",
"(",
"r",
"*",
"request",
".",
"Request",
")",
"{",
"forceHostStyle",
":=",
"aws",
".",
"BoolValue",
"(",
"r",
".",
"Config",
".",
"S3ForcePathStyle",
")",
"\n",
"accelerate",
":=",
"aws",
".",
"BoolValue",
"(",
"r",
".",
"Config",
".",
"S3UseAccelerate",
")",
"\n\n",
"if",
"accelerate",
"&&",
"accelerateOpBlacklist",
".",
"Continue",
"(",
"r",
")",
"{",
"if",
"forceHostStyle",
"{",
"if",
"r",
".",
"Config",
".",
"Logger",
"!=",
"nil",
"{",
"r",
".",
"Config",
".",
"Logger",
".",
"Log",
"(",
"\"",
"\"",
")",
"\n",
"}",
"\n",
"}",
"\n",
"updateEndpointForAccelerate",
"(",
"r",
")",
"\n",
"}",
"else",
"if",
"!",
"forceHostStyle",
"&&",
"r",
".",
"Operation",
".",
"Name",
"!=",
"opGetBucketLocation",
"{",
"updateEndpointForHostStyle",
"(",
"r",
")",
"\n",
"}",
"\n",
"}"
] |
// Request handler to automatically add the bucket name to the endpoint domain
// if possible. This style of bucket is valid for all bucket names which are
// DNS compatible and do not contain "."
|
[
"Request",
"handler",
"to",
"automatically",
"add",
"the",
"bucket",
"name",
"to",
"the",
"endpoint",
"domain",
"if",
"possible",
".",
"This",
"style",
"of",
"bucket",
"is",
"valid",
"for",
"all",
"bucket",
"names",
"which",
"are",
"DNS",
"compatible",
"and",
"do",
"not",
"contain",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/s3/host_style_bucket.go#L36-L50
|
2,327 |
aws/aws-sdk-go
|
service/s3/host_style_bucket.go
|
bucketNameFromReqParams
|
func bucketNameFromReqParams(params interface{}) (string, bool) {
if iface, ok := params.(bucketGetter); ok {
b := iface.getBucket()
return b, len(b) > 0
}
return "", false
}
|
go
|
func bucketNameFromReqParams(params interface{}) (string, bool) {
if iface, ok := params.(bucketGetter); ok {
b := iface.getBucket()
return b, len(b) > 0
}
return "", false
}
|
[
"func",
"bucketNameFromReqParams",
"(",
"params",
"interface",
"{",
"}",
")",
"(",
"string",
",",
"bool",
")",
"{",
"if",
"iface",
",",
"ok",
":=",
"params",
".",
"(",
"bucketGetter",
")",
";",
"ok",
"{",
"b",
":=",
"iface",
".",
"getBucket",
"(",
")",
"\n",
"return",
"b",
",",
"len",
"(",
"b",
")",
">",
"0",
"\n",
"}",
"\n\n",
"return",
"\"",
"\"",
",",
"false",
"\n",
"}"
] |
// Attempts to retrieve the bucket name from the request input parameters.
// If no bucket is found, or the field is empty "", false will be returned.
|
[
"Attempts",
"to",
"retrieve",
"the",
"bucket",
"name",
"from",
"the",
"request",
"input",
"parameters",
".",
"If",
"no",
"bucket",
"is",
"found",
"or",
"the",
"field",
"is",
"empty",
"false",
"will",
"be",
"returned",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/s3/host_style_bucket.go#L114-L121
|
2,328 |
aws/aws-sdk-go
|
service/s3/host_style_bucket.go
|
hostCompatibleBucketName
|
func hostCompatibleBucketName(u *url.URL, bucket string) bool {
// Bucket might be DNS compatible but dots in the hostname will fail
// certificate validation, so do not use host-style.
if u.Scheme == "https" && strings.Contains(bucket, ".") {
return false
}
// if the bucket is DNS compatible
return dnsCompatibleBucketName(bucket)
}
|
go
|
func hostCompatibleBucketName(u *url.URL, bucket string) bool {
// Bucket might be DNS compatible but dots in the hostname will fail
// certificate validation, so do not use host-style.
if u.Scheme == "https" && strings.Contains(bucket, ".") {
return false
}
// if the bucket is DNS compatible
return dnsCompatibleBucketName(bucket)
}
|
[
"func",
"hostCompatibleBucketName",
"(",
"u",
"*",
"url",
".",
"URL",
",",
"bucket",
"string",
")",
"bool",
"{",
"// Bucket might be DNS compatible but dots in the hostname will fail",
"// certificate validation, so do not use host-style.",
"if",
"u",
".",
"Scheme",
"==",
"\"",
"\"",
"&&",
"strings",
".",
"Contains",
"(",
"bucket",
",",
"\"",
"\"",
")",
"{",
"return",
"false",
"\n",
"}",
"\n\n",
"// if the bucket is DNS compatible",
"return",
"dnsCompatibleBucketName",
"(",
"bucket",
")",
"\n",
"}"
] |
// hostCompatibleBucketName returns true if the request should
// put the bucket in the host. This is false if S3ForcePathStyle is
// explicitly set or if the bucket is not DNS compatible.
|
[
"hostCompatibleBucketName",
"returns",
"true",
"if",
"the",
"request",
"should",
"put",
"the",
"bucket",
"in",
"the",
"host",
".",
"This",
"is",
"false",
"if",
"S3ForcePathStyle",
"is",
"explicitly",
"set",
"or",
"if",
"the",
"bucket",
"is",
"not",
"DNS",
"compatible",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/s3/host_style_bucket.go#L126-L135
|
2,329 |
aws/aws-sdk-go
|
service/s3/host_style_bucket.go
|
dnsCompatibleBucketName
|
func dnsCompatibleBucketName(bucket string) bool {
return reDomain.MatchString(bucket) &&
!reIPAddress.MatchString(bucket) &&
!strings.Contains(bucket, "..")
}
|
go
|
func dnsCompatibleBucketName(bucket string) bool {
return reDomain.MatchString(bucket) &&
!reIPAddress.MatchString(bucket) &&
!strings.Contains(bucket, "..")
}
|
[
"func",
"dnsCompatibleBucketName",
"(",
"bucket",
"string",
")",
"bool",
"{",
"return",
"reDomain",
".",
"MatchString",
"(",
"bucket",
")",
"&&",
"!",
"reIPAddress",
".",
"MatchString",
"(",
"bucket",
")",
"&&",
"!",
"strings",
".",
"Contains",
"(",
"bucket",
",",
"\"",
"\"",
")",
"\n",
"}"
] |
// dnsCompatibleBucketName returns true if the bucket name is DNS compatible.
// Buckets created outside of the classic region MUST be DNS compatible.
|
[
"dnsCompatibleBucketName",
"returns",
"true",
"if",
"the",
"bucket",
"name",
"is",
"DNS",
"compatible",
".",
"Buckets",
"created",
"outside",
"of",
"the",
"classic",
"region",
"MUST",
"be",
"DNS",
"compatible",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/s3/host_style_bucket.go#L142-L146
|
2,330 |
aws/aws-sdk-go
|
service/s3/host_style_bucket.go
|
moveBucketToHost
|
func moveBucketToHost(u *url.URL, bucket string) {
u.Host = bucket + "." + u.Host
u.Path = strings.Replace(u.Path, "/{Bucket}", "", -1)
if u.Path == "" {
u.Path = "/"
}
}
|
go
|
func moveBucketToHost(u *url.URL, bucket string) {
u.Host = bucket + "." + u.Host
u.Path = strings.Replace(u.Path, "/{Bucket}", "", -1)
if u.Path == "" {
u.Path = "/"
}
}
|
[
"func",
"moveBucketToHost",
"(",
"u",
"*",
"url",
".",
"URL",
",",
"bucket",
"string",
")",
"{",
"u",
".",
"Host",
"=",
"bucket",
"+",
"\"",
"\"",
"+",
"u",
".",
"Host",
"\n",
"u",
".",
"Path",
"=",
"strings",
".",
"Replace",
"(",
"u",
".",
"Path",
",",
"\"",
"\"",
",",
"\"",
"\"",
",",
"-",
"1",
")",
"\n",
"if",
"u",
".",
"Path",
"==",
"\"",
"\"",
"{",
"u",
".",
"Path",
"=",
"\"",
"\"",
"\n",
"}",
"\n",
"}"
] |
// moveBucketToHost moves the bucket name from the URI path to URL host.
|
[
"moveBucketToHost",
"moves",
"the",
"bucket",
"name",
"from",
"the",
"URI",
"path",
"to",
"URL",
"host",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/s3/host_style_bucket.go#L149-L155
|
2,331 |
aws/aws-sdk-go
|
aws/session/env_config.go
|
loadEnvConfig
|
func loadEnvConfig() envConfig {
enableSharedConfig, _ := strconv.ParseBool(os.Getenv("AWS_SDK_LOAD_CONFIG"))
return envConfigLoad(enableSharedConfig)
}
|
go
|
func loadEnvConfig() envConfig {
enableSharedConfig, _ := strconv.ParseBool(os.Getenv("AWS_SDK_LOAD_CONFIG"))
return envConfigLoad(enableSharedConfig)
}
|
[
"func",
"loadEnvConfig",
"(",
")",
"envConfig",
"{",
"enableSharedConfig",
",",
"_",
":=",
"strconv",
".",
"ParseBool",
"(",
"os",
".",
"Getenv",
"(",
"\"",
"\"",
")",
")",
"\n",
"return",
"envConfigLoad",
"(",
"enableSharedConfig",
")",
"\n",
"}"
] |
// loadEnvConfig retrieves the SDK's environment configuration.
// See `envConfig` for the values that will be retrieved.
//
// If the environment variable `AWS_SDK_LOAD_CONFIG` is set to a truthy value
// the shared SDK config will be loaded in addition to the SDK's specific
// configuration values.
|
[
"loadEnvConfig",
"retrieves",
"the",
"SDK",
"s",
"environment",
"configuration",
".",
"See",
"envConfig",
"for",
"the",
"values",
"that",
"will",
"be",
"retrieved",
".",
"If",
"the",
"environment",
"variable",
"AWS_SDK_LOAD_CONFIG",
"is",
"set",
"to",
"a",
"truthy",
"value",
"the",
"shared",
"SDK",
"config",
"will",
"be",
"loaded",
"in",
"addition",
"to",
"the",
"SDK",
"s",
"specific",
"configuration",
"values",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/session/env_config.go#L161-L164
|
2,332 |
aws/aws-sdk-go
|
service/signer/api.go
|
SetIncludeCanceled
|
func (s *ListSigningProfilesInput) SetIncludeCanceled(v bool) *ListSigningProfilesInput {
s.IncludeCanceled = &v
return s
}
|
go
|
func (s *ListSigningProfilesInput) SetIncludeCanceled(v bool) *ListSigningProfilesInput {
s.IncludeCanceled = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"ListSigningProfilesInput",
")",
"SetIncludeCanceled",
"(",
"v",
"bool",
")",
"*",
"ListSigningProfilesInput",
"{",
"s",
".",
"IncludeCanceled",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetIncludeCanceled sets the IncludeCanceled field's value.
|
[
"SetIncludeCanceled",
"sets",
"the",
"IncludeCanceled",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/signer/api.go#L1843-L1846
|
2,333 |
aws/aws-sdk-go
|
service/signer/api.go
|
SetEncryptionAlgorithmOptions
|
func (s *SigningConfiguration) SetEncryptionAlgorithmOptions(v *EncryptionAlgorithmOptions) *SigningConfiguration {
s.EncryptionAlgorithmOptions = v
return s
}
|
go
|
func (s *SigningConfiguration) SetEncryptionAlgorithmOptions(v *EncryptionAlgorithmOptions) *SigningConfiguration {
s.EncryptionAlgorithmOptions = v
return s
}
|
[
"func",
"(",
"s",
"*",
"SigningConfiguration",
")",
"SetEncryptionAlgorithmOptions",
"(",
"v",
"*",
"EncryptionAlgorithmOptions",
")",
"*",
"SigningConfiguration",
"{",
"s",
".",
"EncryptionAlgorithmOptions",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetEncryptionAlgorithmOptions sets the EncryptionAlgorithmOptions field's value.
|
[
"SetEncryptionAlgorithmOptions",
"sets",
"the",
"EncryptionAlgorithmOptions",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/signer/api.go#L2197-L2200
|
2,334 |
aws/aws-sdk-go
|
service/signer/api.go
|
SetHashAlgorithmOptions
|
func (s *SigningConfiguration) SetHashAlgorithmOptions(v *HashAlgorithmOptions) *SigningConfiguration {
s.HashAlgorithmOptions = v
return s
}
|
go
|
func (s *SigningConfiguration) SetHashAlgorithmOptions(v *HashAlgorithmOptions) *SigningConfiguration {
s.HashAlgorithmOptions = v
return s
}
|
[
"func",
"(",
"s",
"*",
"SigningConfiguration",
")",
"SetHashAlgorithmOptions",
"(",
"v",
"*",
"HashAlgorithmOptions",
")",
"*",
"SigningConfiguration",
"{",
"s",
".",
"HashAlgorithmOptions",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetHashAlgorithmOptions sets the HashAlgorithmOptions field's value.
|
[
"SetHashAlgorithmOptions",
"sets",
"the",
"HashAlgorithmOptions",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/signer/api.go#L2203-L2206
|
2,335 |
aws/aws-sdk-go
|
service/signer/api.go
|
SetEncryptionAlgorithm
|
func (s *SigningConfigurationOverrides) SetEncryptionAlgorithm(v string) *SigningConfigurationOverrides {
s.EncryptionAlgorithm = &v
return s
}
|
go
|
func (s *SigningConfigurationOverrides) SetEncryptionAlgorithm(v string) *SigningConfigurationOverrides {
s.EncryptionAlgorithm = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"SigningConfigurationOverrides",
")",
"SetEncryptionAlgorithm",
"(",
"v",
"string",
")",
"*",
"SigningConfigurationOverrides",
"{",
"s",
".",
"EncryptionAlgorithm",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetEncryptionAlgorithm sets the EncryptionAlgorithm field's value.
|
[
"SetEncryptionAlgorithm",
"sets",
"the",
"EncryptionAlgorithm",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/signer/api.go#L2233-L2236
|
2,336 |
aws/aws-sdk-go
|
service/signer/api.go
|
SetDefaultFormat
|
func (s *SigningImageFormat) SetDefaultFormat(v string) *SigningImageFormat {
s.DefaultFormat = &v
return s
}
|
go
|
func (s *SigningImageFormat) SetDefaultFormat(v string) *SigningImageFormat {
s.DefaultFormat = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"SigningImageFormat",
")",
"SetDefaultFormat",
"(",
"v",
"string",
")",
"*",
"SigningImageFormat",
"{",
"s",
".",
"DefaultFormat",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetDefaultFormat sets the DefaultFormat field's value.
|
[
"SetDefaultFormat",
"sets",
"the",
"DefaultFormat",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/signer/api.go#L2270-L2273
|
2,337 |
aws/aws-sdk-go
|
service/signer/api.go
|
SetSupportedFormats
|
func (s *SigningImageFormat) SetSupportedFormats(v []*string) *SigningImageFormat {
s.SupportedFormats = v
return s
}
|
go
|
func (s *SigningImageFormat) SetSupportedFormats(v []*string) *SigningImageFormat {
s.SupportedFormats = v
return s
}
|
[
"func",
"(",
"s",
"*",
"SigningImageFormat",
")",
"SetSupportedFormats",
"(",
"v",
"[",
"]",
"*",
"string",
")",
"*",
"SigningImageFormat",
"{",
"s",
".",
"SupportedFormats",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetSupportedFormats sets the SupportedFormats field's value.
|
[
"SetSupportedFormats",
"sets",
"the",
"SupportedFormats",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/signer/api.go#L2276-L2279
|
2,338 |
aws/aws-sdk-go
|
service/s3/waiters.go
|
WaitUntilBucketExists
|
func (c *S3) WaitUntilBucketExists(input *HeadBucketInput) error {
return c.WaitUntilBucketExistsWithContext(aws.BackgroundContext(), input)
}
|
go
|
func (c *S3) WaitUntilBucketExists(input *HeadBucketInput) error {
return c.WaitUntilBucketExistsWithContext(aws.BackgroundContext(), input)
}
|
[
"func",
"(",
"c",
"*",
"S3",
")",
"WaitUntilBucketExists",
"(",
"input",
"*",
"HeadBucketInput",
")",
"error",
"{",
"return",
"c",
".",
"WaitUntilBucketExistsWithContext",
"(",
"aws",
".",
"BackgroundContext",
"(",
")",
",",
"input",
")",
"\n",
"}"
] |
// WaitUntilBucketExists uses the Amazon S3 API operation
// HeadBucket to wait for a condition to be met before returning.
// If the condition is not met within the max attempt window, an error will
// be returned.
|
[
"WaitUntilBucketExists",
"uses",
"the",
"Amazon",
"S3",
"API",
"operation",
"HeadBucket",
"to",
"wait",
"for",
"a",
"condition",
"to",
"be",
"met",
"before",
"returning",
".",
"If",
"the",
"condition",
"is",
"not",
"met",
"within",
"the",
"max",
"attempt",
"window",
"an",
"error",
"will",
"be",
"returned",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/s3/waiters.go#L16-L18
|
2,339 |
aws/aws-sdk-go
|
service/s3/waiters.go
|
WaitUntilBucketNotExists
|
func (c *S3) WaitUntilBucketNotExists(input *HeadBucketInput) error {
return c.WaitUntilBucketNotExistsWithContext(aws.BackgroundContext(), input)
}
|
go
|
func (c *S3) WaitUntilBucketNotExists(input *HeadBucketInput) error {
return c.WaitUntilBucketNotExistsWithContext(aws.BackgroundContext(), input)
}
|
[
"func",
"(",
"c",
"*",
"S3",
")",
"WaitUntilBucketNotExists",
"(",
"input",
"*",
"HeadBucketInput",
")",
"error",
"{",
"return",
"c",
".",
"WaitUntilBucketNotExistsWithContext",
"(",
"aws",
".",
"BackgroundContext",
"(",
")",
",",
"input",
")",
"\n",
"}"
] |
// WaitUntilBucketNotExists uses the Amazon S3 API operation
// HeadBucket to wait for a condition to be met before returning.
// If the condition is not met within the max attempt window, an error will
// be returned.
|
[
"WaitUntilBucketNotExists",
"uses",
"the",
"Amazon",
"S3",
"API",
"operation",
"HeadBucket",
"to",
"wait",
"for",
"a",
"condition",
"to",
"be",
"met",
"before",
"returning",
".",
"If",
"the",
"condition",
"is",
"not",
"met",
"within",
"the",
"max",
"attempt",
"window",
"an",
"error",
"will",
"be",
"returned",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/s3/waiters.go#L77-L79
|
2,340 |
aws/aws-sdk-go
|
service/s3/waiters.go
|
WaitUntilObjectExists
|
func (c *S3) WaitUntilObjectExists(input *HeadObjectInput) error {
return c.WaitUntilObjectExistsWithContext(aws.BackgroundContext(), input)
}
|
go
|
func (c *S3) WaitUntilObjectExists(input *HeadObjectInput) error {
return c.WaitUntilObjectExistsWithContext(aws.BackgroundContext(), input)
}
|
[
"func",
"(",
"c",
"*",
"S3",
")",
"WaitUntilObjectExists",
"(",
"input",
"*",
"HeadObjectInput",
")",
"error",
"{",
"return",
"c",
".",
"WaitUntilObjectExistsWithContext",
"(",
"aws",
".",
"BackgroundContext",
"(",
")",
",",
"input",
")",
"\n",
"}"
] |
// WaitUntilObjectExists uses the Amazon S3 API operation
// HeadObject to wait for a condition to be met before returning.
// If the condition is not met within the max attempt window, an error will
// be returned.
|
[
"WaitUntilObjectExists",
"uses",
"the",
"Amazon",
"S3",
"API",
"operation",
"HeadObject",
"to",
"wait",
"for",
"a",
"condition",
"to",
"be",
"met",
"before",
"returning",
".",
"If",
"the",
"condition",
"is",
"not",
"met",
"within",
"the",
"max",
"attempt",
"window",
"an",
"error",
"will",
"be",
"returned",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/s3/waiters.go#L123-L125
|
2,341 |
aws/aws-sdk-go
|
service/s3/waiters.go
|
WaitUntilObjectNotExists
|
func (c *S3) WaitUntilObjectNotExists(input *HeadObjectInput) error {
return c.WaitUntilObjectNotExistsWithContext(aws.BackgroundContext(), input)
}
|
go
|
func (c *S3) WaitUntilObjectNotExists(input *HeadObjectInput) error {
return c.WaitUntilObjectNotExistsWithContext(aws.BackgroundContext(), input)
}
|
[
"func",
"(",
"c",
"*",
"S3",
")",
"WaitUntilObjectNotExists",
"(",
"input",
"*",
"HeadObjectInput",
")",
"error",
"{",
"return",
"c",
".",
"WaitUntilObjectNotExistsWithContext",
"(",
"aws",
".",
"BackgroundContext",
"(",
")",
",",
"input",
")",
"\n",
"}"
] |
// WaitUntilObjectNotExists uses the Amazon S3 API operation
// HeadObject to wait for a condition to be met before returning.
// If the condition is not met within the max attempt window, an error will
// be returned.
|
[
"WaitUntilObjectNotExists",
"uses",
"the",
"Amazon",
"S3",
"API",
"operation",
"HeadObject",
"to",
"wait",
"for",
"a",
"condition",
"to",
"be",
"met",
"before",
"returning",
".",
"If",
"the",
"condition",
"is",
"not",
"met",
"within",
"the",
"max",
"attempt",
"window",
"an",
"error",
"will",
"be",
"returned",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/s3/waiters.go#L174-L176
|
2,342 |
aws/aws-sdk-go
|
aws/request/validation.go
|
Add
|
func (e *ErrInvalidParams) Add(err ErrInvalidParam) {
err.SetContext(e.Context)
e.errs = append(e.errs, err)
}
|
go
|
func (e *ErrInvalidParams) Add(err ErrInvalidParam) {
err.SetContext(e.Context)
e.errs = append(e.errs, err)
}
|
[
"func",
"(",
"e",
"*",
"ErrInvalidParams",
")",
"Add",
"(",
"err",
"ErrInvalidParam",
")",
"{",
"err",
".",
"SetContext",
"(",
"e",
".",
"Context",
")",
"\n",
"e",
".",
"errs",
"=",
"append",
"(",
"e",
".",
"errs",
",",
"err",
")",
"\n",
"}"
] |
// Add adds a new invalid parameter error to the collection of invalid
// parameters. The context of the invalid parameter will be updated to reflect
// this collection.
|
[
"Add",
"adds",
"a",
"new",
"invalid",
"parameter",
"error",
"to",
"the",
"collection",
"of",
"invalid",
"parameters",
".",
"The",
"context",
"of",
"the",
"invalid",
"parameter",
"will",
"be",
"updated",
"to",
"reflect",
"this",
"collection",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/request/validation.go#L46-L49
|
2,343 |
aws/aws-sdk-go
|
aws/request/validation.go
|
AddNested
|
func (e *ErrInvalidParams) AddNested(nestedCtx string, nested ErrInvalidParams) {
for _, err := range nested.errs {
err.SetContext(e.Context)
err.AddNestedContext(nestedCtx)
e.errs = append(e.errs, err)
}
}
|
go
|
func (e *ErrInvalidParams) AddNested(nestedCtx string, nested ErrInvalidParams) {
for _, err := range nested.errs {
err.SetContext(e.Context)
err.AddNestedContext(nestedCtx)
e.errs = append(e.errs, err)
}
}
|
[
"func",
"(",
"e",
"*",
"ErrInvalidParams",
")",
"AddNested",
"(",
"nestedCtx",
"string",
",",
"nested",
"ErrInvalidParams",
")",
"{",
"for",
"_",
",",
"err",
":=",
"range",
"nested",
".",
"errs",
"{",
"err",
".",
"SetContext",
"(",
"e",
".",
"Context",
")",
"\n",
"err",
".",
"AddNestedContext",
"(",
"nestedCtx",
")",
"\n",
"e",
".",
"errs",
"=",
"append",
"(",
"e",
".",
"errs",
",",
"err",
")",
"\n",
"}",
"\n",
"}"
] |
// AddNested adds the invalid parameter errors from another ErrInvalidParams
// value into this collection. The nested errors will have their nested context
// updated and base context to reflect the merging.
//
// Use for nested validations errors.
|
[
"AddNested",
"adds",
"the",
"invalid",
"parameter",
"errors",
"from",
"another",
"ErrInvalidParams",
"value",
"into",
"this",
"collection",
".",
"The",
"nested",
"errors",
"will",
"have",
"their",
"nested",
"context",
"updated",
"and",
"base",
"context",
"to",
"reflect",
"the",
"merging",
".",
"Use",
"for",
"nested",
"validations",
"errors",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/request/validation.go#L56-L62
|
2,344 |
aws/aws-sdk-go
|
aws/request/validation.go
|
Error
|
func (e ErrInvalidParams) Error() string {
w := &bytes.Buffer{}
fmt.Fprintf(w, "%s: %s\n", e.Code(), e.Message())
for _, err := range e.errs {
fmt.Fprintf(w, "- %s\n", err.Message())
}
return w.String()
}
|
go
|
func (e ErrInvalidParams) Error() string {
w := &bytes.Buffer{}
fmt.Fprintf(w, "%s: %s\n", e.Code(), e.Message())
for _, err := range e.errs {
fmt.Fprintf(w, "- %s\n", err.Message())
}
return w.String()
}
|
[
"func",
"(",
"e",
"ErrInvalidParams",
")",
"Error",
"(",
")",
"string",
"{",
"w",
":=",
"&",
"bytes",
".",
"Buffer",
"{",
"}",
"\n",
"fmt",
".",
"Fprintf",
"(",
"w",
",",
"\"",
"\\n",
"\"",
",",
"e",
".",
"Code",
"(",
")",
",",
"e",
".",
"Message",
"(",
")",
")",
"\n\n",
"for",
"_",
",",
"err",
":=",
"range",
"e",
".",
"errs",
"{",
"fmt",
".",
"Fprintf",
"(",
"w",
",",
"\"",
"\\n",
"\"",
",",
"err",
".",
"Message",
"(",
")",
")",
"\n",
"}",
"\n\n",
"return",
"w",
".",
"String",
"(",
")",
"\n",
"}"
] |
// Error returns the string formatted form of the invalid parameters.
|
[
"Error",
"returns",
"the",
"string",
"formatted",
"form",
"of",
"the",
"invalid",
"parameters",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/request/validation.go#L80-L89
|
2,345 |
aws/aws-sdk-go
|
aws/request/validation.go
|
OrigErr
|
func (e ErrInvalidParams) OrigErr() error {
return awserr.NewBatchError(
InvalidParameterErrCode, e.Message(), e.OrigErrs())
}
|
go
|
func (e ErrInvalidParams) OrigErr() error {
return awserr.NewBatchError(
InvalidParameterErrCode, e.Message(), e.OrigErrs())
}
|
[
"func",
"(",
"e",
"ErrInvalidParams",
")",
"OrigErr",
"(",
")",
"error",
"{",
"return",
"awserr",
".",
"NewBatchError",
"(",
"InvalidParameterErrCode",
",",
"e",
".",
"Message",
"(",
")",
",",
"e",
".",
"OrigErrs",
"(",
")",
")",
"\n",
"}"
] |
// OrigErr returns the invalid parameters as a awserr.BatchedErrors value
|
[
"OrigErr",
"returns",
"the",
"invalid",
"parameters",
"as",
"a",
"awserr",
".",
"BatchedErrors",
"value"
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/request/validation.go#L92-L95
|
2,346 |
aws/aws-sdk-go
|
aws/request/validation.go
|
OrigErrs
|
func (e ErrInvalidParams) OrigErrs() []error {
errs := make([]error, len(e.errs))
for i := 0; i < len(errs); i++ {
errs[i] = e.errs[i]
}
return errs
}
|
go
|
func (e ErrInvalidParams) OrigErrs() []error {
errs := make([]error, len(e.errs))
for i := 0; i < len(errs); i++ {
errs[i] = e.errs[i]
}
return errs
}
|
[
"func",
"(",
"e",
"ErrInvalidParams",
")",
"OrigErrs",
"(",
")",
"[",
"]",
"error",
"{",
"errs",
":=",
"make",
"(",
"[",
"]",
"error",
",",
"len",
"(",
"e",
".",
"errs",
")",
")",
"\n",
"for",
"i",
":=",
"0",
";",
"i",
"<",
"len",
"(",
"errs",
")",
";",
"i",
"++",
"{",
"errs",
"[",
"i",
"]",
"=",
"e",
".",
"errs",
"[",
"i",
"]",
"\n",
"}",
"\n\n",
"return",
"errs",
"\n",
"}"
] |
// OrigErrs returns a slice of the invalid parameters
|
[
"OrigErrs",
"returns",
"a",
"slice",
"of",
"the",
"invalid",
"parameters"
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/request/validation.go#L98-L105
|
2,347 |
aws/aws-sdk-go
|
aws/request/validation.go
|
Message
|
func (e *errInvalidParam) Message() string {
return fmt.Sprintf("%s, %s.", e.msg, e.Field())
}
|
go
|
func (e *errInvalidParam) Message() string {
return fmt.Sprintf("%s, %s.", e.msg, e.Field())
}
|
[
"func",
"(",
"e",
"*",
"errInvalidParam",
")",
"Message",
"(",
")",
"string",
"{",
"return",
"fmt",
".",
"Sprintf",
"(",
"\"",
"\"",
",",
"e",
".",
"msg",
",",
"e",
".",
"Field",
"(",
")",
")",
"\n",
"}"
] |
// Message returns the reason the parameter was invalid, and its context.
|
[
"Message",
"returns",
"the",
"reason",
"the",
"parameter",
"was",
"invalid",
"and",
"its",
"context",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/request/validation.go#L135-L137
|
2,348 |
aws/aws-sdk-go
|
aws/request/validation.go
|
Error
|
func (e *errInvalidParam) Error() string {
return fmt.Sprintf("%s: %s", e.code, e.Message())
}
|
go
|
func (e *errInvalidParam) Error() string {
return fmt.Sprintf("%s: %s", e.code, e.Message())
}
|
[
"func",
"(",
"e",
"*",
"errInvalidParam",
")",
"Error",
"(",
")",
"string",
"{",
"return",
"fmt",
".",
"Sprintf",
"(",
"\"",
"\"",
",",
"e",
".",
"code",
",",
"e",
".",
"Message",
"(",
")",
")",
"\n",
"}"
] |
// Error returns the string version of the invalid parameter error.
|
[
"Error",
"returns",
"the",
"string",
"version",
"of",
"the",
"invalid",
"parameter",
"error",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/request/validation.go#L140-L142
|
2,349 |
aws/aws-sdk-go
|
aws/request/validation.go
|
Field
|
func (e *errInvalidParam) Field() string {
field := e.context
if len(field) > 0 {
field += "."
}
if len(e.nestedContext) > 0 {
field += fmt.Sprintf("%s.", e.nestedContext)
}
field += e.field
return field
}
|
go
|
func (e *errInvalidParam) Field() string {
field := e.context
if len(field) > 0 {
field += "."
}
if len(e.nestedContext) > 0 {
field += fmt.Sprintf("%s.", e.nestedContext)
}
field += e.field
return field
}
|
[
"func",
"(",
"e",
"*",
"errInvalidParam",
")",
"Field",
"(",
")",
"string",
"{",
"field",
":=",
"e",
".",
"context",
"\n",
"if",
"len",
"(",
"field",
")",
">",
"0",
"{",
"field",
"+=",
"\"",
"\"",
"\n",
"}",
"\n",
"if",
"len",
"(",
"e",
".",
"nestedContext",
")",
">",
"0",
"{",
"field",
"+=",
"fmt",
".",
"Sprintf",
"(",
"\"",
"\"",
",",
"e",
".",
"nestedContext",
")",
"\n",
"}",
"\n",
"field",
"+=",
"e",
".",
"field",
"\n\n",
"return",
"field",
"\n",
"}"
] |
// Field Returns the field and context the error occurred.
|
[
"Field",
"Returns",
"the",
"field",
"and",
"context",
"the",
"error",
"occurred",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/request/validation.go#L150-L161
|
2,350 |
aws/aws-sdk-go
|
aws/request/validation.go
|
AddNestedContext
|
func (e *errInvalidParam) AddNestedContext(ctx string) {
if len(e.nestedContext) == 0 {
e.nestedContext = ctx
} else {
e.nestedContext = fmt.Sprintf("%s.%s", ctx, e.nestedContext)
}
}
|
go
|
func (e *errInvalidParam) AddNestedContext(ctx string) {
if len(e.nestedContext) == 0 {
e.nestedContext = ctx
} else {
e.nestedContext = fmt.Sprintf("%s.%s", ctx, e.nestedContext)
}
}
|
[
"func",
"(",
"e",
"*",
"errInvalidParam",
")",
"AddNestedContext",
"(",
"ctx",
"string",
")",
"{",
"if",
"len",
"(",
"e",
".",
"nestedContext",
")",
"==",
"0",
"{",
"e",
".",
"nestedContext",
"=",
"ctx",
"\n",
"}",
"else",
"{",
"e",
".",
"nestedContext",
"=",
"fmt",
".",
"Sprintf",
"(",
"\"",
"\"",
",",
"ctx",
",",
"e",
".",
"nestedContext",
")",
"\n",
"}",
"\n\n",
"}"
] |
// AddNestedContext prepends a context to the field's path.
|
[
"AddNestedContext",
"prepends",
"a",
"context",
"to",
"the",
"field",
"s",
"path",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/request/validation.go#L169-L176
|
2,351 |
aws/aws-sdk-go
|
aws/request/validation.go
|
NewErrParamRequired
|
func NewErrParamRequired(field string) *ErrParamRequired {
return &ErrParamRequired{
errInvalidParam{
code: ParamRequiredErrCode,
field: field,
msg: fmt.Sprintf("missing required field"),
},
}
}
|
go
|
func NewErrParamRequired(field string) *ErrParamRequired {
return &ErrParamRequired{
errInvalidParam{
code: ParamRequiredErrCode,
field: field,
msg: fmt.Sprintf("missing required field"),
},
}
}
|
[
"func",
"NewErrParamRequired",
"(",
"field",
"string",
")",
"*",
"ErrParamRequired",
"{",
"return",
"&",
"ErrParamRequired",
"{",
"errInvalidParam",
"{",
"code",
":",
"ParamRequiredErrCode",
",",
"field",
":",
"field",
",",
"msg",
":",
"fmt",
".",
"Sprintf",
"(",
"\"",
"\"",
")",
",",
"}",
",",
"}",
"\n",
"}"
] |
// NewErrParamRequired creates a new required parameter error.
|
[
"NewErrParamRequired",
"creates",
"a",
"new",
"required",
"parameter",
"error",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/request/validation.go#L184-L192
|
2,352 |
aws/aws-sdk-go
|
aws/request/validation.go
|
NewErrParamMinValue
|
func NewErrParamMinValue(field string, min float64) *ErrParamMinValue {
return &ErrParamMinValue{
errInvalidParam: errInvalidParam{
code: ParamMinValueErrCode,
field: field,
msg: fmt.Sprintf("minimum field value of %v", min),
},
min: min,
}
}
|
go
|
func NewErrParamMinValue(field string, min float64) *ErrParamMinValue {
return &ErrParamMinValue{
errInvalidParam: errInvalidParam{
code: ParamMinValueErrCode,
field: field,
msg: fmt.Sprintf("minimum field value of %v", min),
},
min: min,
}
}
|
[
"func",
"NewErrParamMinValue",
"(",
"field",
"string",
",",
"min",
"float64",
")",
"*",
"ErrParamMinValue",
"{",
"return",
"&",
"ErrParamMinValue",
"{",
"errInvalidParam",
":",
"errInvalidParam",
"{",
"code",
":",
"ParamMinValueErrCode",
",",
"field",
":",
"field",
",",
"msg",
":",
"fmt",
".",
"Sprintf",
"(",
"\"",
"\"",
",",
"min",
")",
",",
"}",
",",
"min",
":",
"min",
",",
"}",
"\n",
"}"
] |
// NewErrParamMinValue creates a new minimum value parameter error.
|
[
"NewErrParamMinValue",
"creates",
"a",
"new",
"minimum",
"value",
"parameter",
"error",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/request/validation.go#L201-L210
|
2,353 |
aws/aws-sdk-go
|
aws/request/validation.go
|
NewErrParamMinLen
|
func NewErrParamMinLen(field string, min int) *ErrParamMinLen {
return &ErrParamMinLen{
errInvalidParam: errInvalidParam{
code: ParamMinLenErrCode,
field: field,
msg: fmt.Sprintf("minimum field size of %v", min),
},
min: min,
}
}
|
go
|
func NewErrParamMinLen(field string, min int) *ErrParamMinLen {
return &ErrParamMinLen{
errInvalidParam: errInvalidParam{
code: ParamMinLenErrCode,
field: field,
msg: fmt.Sprintf("minimum field size of %v", min),
},
min: min,
}
}
|
[
"func",
"NewErrParamMinLen",
"(",
"field",
"string",
",",
"min",
"int",
")",
"*",
"ErrParamMinLen",
"{",
"return",
"&",
"ErrParamMinLen",
"{",
"errInvalidParam",
":",
"errInvalidParam",
"{",
"code",
":",
"ParamMinLenErrCode",
",",
"field",
":",
"field",
",",
"msg",
":",
"fmt",
".",
"Sprintf",
"(",
"\"",
"\"",
",",
"min",
")",
",",
"}",
",",
"min",
":",
"min",
",",
"}",
"\n",
"}"
] |
// NewErrParamMinLen creates a new minimum length parameter error.
|
[
"NewErrParamMinLen",
"creates",
"a",
"new",
"minimum",
"length",
"parameter",
"error",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/request/validation.go#L226-L235
|
2,354 |
aws/aws-sdk-go
|
aws/request/validation.go
|
NewErrParamMaxLen
|
func NewErrParamMaxLen(field string, max int, value string) *ErrParamMaxLen {
return &ErrParamMaxLen{
errInvalidParam: errInvalidParam{
code: ParamMaxLenErrCode,
field: field,
msg: fmt.Sprintf("maximum size of %v, %v", max, value),
},
max: max,
}
}
|
go
|
func NewErrParamMaxLen(field string, max int, value string) *ErrParamMaxLen {
return &ErrParamMaxLen{
errInvalidParam: errInvalidParam{
code: ParamMaxLenErrCode,
field: field,
msg: fmt.Sprintf("maximum size of %v, %v", max, value),
},
max: max,
}
}
|
[
"func",
"NewErrParamMaxLen",
"(",
"field",
"string",
",",
"max",
"int",
",",
"value",
"string",
")",
"*",
"ErrParamMaxLen",
"{",
"return",
"&",
"ErrParamMaxLen",
"{",
"errInvalidParam",
":",
"errInvalidParam",
"{",
"code",
":",
"ParamMaxLenErrCode",
",",
"field",
":",
"field",
",",
"msg",
":",
"fmt",
".",
"Sprintf",
"(",
"\"",
"\"",
",",
"max",
",",
"value",
")",
",",
"}",
",",
"max",
":",
"max",
",",
"}",
"\n",
"}"
] |
// NewErrParamMaxLen creates a new maximum length parameter error.
|
[
"NewErrParamMaxLen",
"creates",
"a",
"new",
"maximum",
"length",
"parameter",
"error",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/request/validation.go#L249-L258
|
2,355 |
aws/aws-sdk-go
|
aws/request/validation.go
|
NewErrParamFormat
|
func NewErrParamFormat(field string, format, value string) *ErrParamFormat {
return &ErrParamFormat{
errInvalidParam: errInvalidParam{
code: ParamFormatErrCode,
field: field,
msg: fmt.Sprintf("format %v, %v", format, value),
},
format: format,
}
}
|
go
|
func NewErrParamFormat(field string, format, value string) *ErrParamFormat {
return &ErrParamFormat{
errInvalidParam: errInvalidParam{
code: ParamFormatErrCode,
field: field,
msg: fmt.Sprintf("format %v, %v", format, value),
},
format: format,
}
}
|
[
"func",
"NewErrParamFormat",
"(",
"field",
"string",
",",
"format",
",",
"value",
"string",
")",
"*",
"ErrParamFormat",
"{",
"return",
"&",
"ErrParamFormat",
"{",
"errInvalidParam",
":",
"errInvalidParam",
"{",
"code",
":",
"ParamFormatErrCode",
",",
"field",
":",
"field",
",",
"msg",
":",
"fmt",
".",
"Sprintf",
"(",
"\"",
"\"",
",",
"format",
",",
"value",
")",
",",
"}",
",",
"format",
":",
"format",
",",
"}",
"\n",
"}"
] |
// NewErrParamFormat creates a new invalid format parameter error.
|
[
"NewErrParamFormat",
"creates",
"a",
"new",
"invalid",
"format",
"parameter",
"error",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/request/validation.go#L272-L281
|
2,356 |
aws/aws-sdk-go
|
internal/ini/literal_tokens.go
|
Append
|
func (v *Value) Append(tok Token) {
r := tok.Raw()
if v.Type != QuotedStringType {
v.Type = StringType
r = tok.raw[1 : len(tok.raw)-1]
}
if tok.Type() != TokenLit {
v.raw = append(v.raw, tok.Raw()...)
} else {
v.raw = append(v.raw, r...)
}
}
|
go
|
func (v *Value) Append(tok Token) {
r := tok.Raw()
if v.Type != QuotedStringType {
v.Type = StringType
r = tok.raw[1 : len(tok.raw)-1]
}
if tok.Type() != TokenLit {
v.raw = append(v.raw, tok.Raw()...)
} else {
v.raw = append(v.raw, r...)
}
}
|
[
"func",
"(",
"v",
"*",
"Value",
")",
"Append",
"(",
"tok",
"Token",
")",
"{",
"r",
":=",
"tok",
".",
"Raw",
"(",
")",
"\n",
"if",
"v",
".",
"Type",
"!=",
"QuotedStringType",
"{",
"v",
".",
"Type",
"=",
"StringType",
"\n",
"r",
"=",
"tok",
".",
"raw",
"[",
"1",
":",
"len",
"(",
"tok",
".",
"raw",
")",
"-",
"1",
"]",
"\n",
"}",
"\n",
"if",
"tok",
".",
"Type",
"(",
")",
"!=",
"TokenLit",
"{",
"v",
".",
"raw",
"=",
"append",
"(",
"v",
".",
"raw",
",",
"tok",
".",
"Raw",
"(",
")",
"...",
")",
"\n",
"}",
"else",
"{",
"v",
".",
"raw",
"=",
"append",
"(",
"v",
".",
"raw",
",",
"r",
"...",
")",
"\n",
"}",
"\n",
"}"
] |
// Append will append values and change the type to a string
// type.
|
[
"Append",
"will",
"append",
"values",
"and",
"change",
"the",
"type",
"to",
"a",
"string",
"type",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/internal/ini/literal_tokens.go#L198-L209
|
2,357 |
aws/aws-sdk-go
|
internal/ini/literal_tokens.go
|
StringValue
|
func (v Value) StringValue() string {
switch v.Type {
case StringType:
return strings.TrimFunc(string(v.raw), isTrimmable)
case QuotedStringType:
// preserve all characters in the quotes
return string(removeEscapedCharacters(v.raw[1 : len(v.raw)-1]))
default:
return strings.TrimFunc(string(v.raw), isTrimmable)
}
}
|
go
|
func (v Value) StringValue() string {
switch v.Type {
case StringType:
return strings.TrimFunc(string(v.raw), isTrimmable)
case QuotedStringType:
// preserve all characters in the quotes
return string(removeEscapedCharacters(v.raw[1 : len(v.raw)-1]))
default:
return strings.TrimFunc(string(v.raw), isTrimmable)
}
}
|
[
"func",
"(",
"v",
"Value",
")",
"StringValue",
"(",
")",
"string",
"{",
"switch",
"v",
".",
"Type",
"{",
"case",
"StringType",
":",
"return",
"strings",
".",
"TrimFunc",
"(",
"string",
"(",
"v",
".",
"raw",
")",
",",
"isTrimmable",
")",
"\n",
"case",
"QuotedStringType",
":",
"// preserve all characters in the quotes",
"return",
"string",
"(",
"removeEscapedCharacters",
"(",
"v",
".",
"raw",
"[",
"1",
":",
"len",
"(",
"v",
".",
"raw",
")",
"-",
"1",
"]",
")",
")",
"\n",
"default",
":",
"return",
"strings",
".",
"TrimFunc",
"(",
"string",
"(",
"v",
".",
"raw",
")",
",",
"isTrimmable",
")",
"\n",
"}",
"\n",
"}"
] |
// StringValue returns the string value
|
[
"StringValue",
"returns",
"the",
"string",
"value"
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/internal/ini/literal_tokens.go#L290-L300
|
2,358 |
aws/aws-sdk-go
|
example/aws/request/httptrace/client.go
|
NewClient
|
func NewClient(cfg ClientConfig) *http.Client {
tr := &http.Transport{
Proxy: http.ProxyFromEnvironment,
DialContext: (&net.Dialer{
Timeout: cfg.Timeouts.Connect,
KeepAlive: 30 * time.Second,
DualStack: true,
}).DialContext,
MaxIdleConns: 100,
IdleConnTimeout: cfg.Timeouts.IdleConnection,
DisableKeepAlives: !cfg.KeepAlive,
TLSHandshakeTimeout: cfg.Timeouts.TLSHandshake,
ExpectContinueTimeout: cfg.Timeouts.ExpectContinue,
ResponseHeaderTimeout: cfg.Timeouts.ResponseHeader,
}
return &http.Client{
Transport: tr,
}
}
|
go
|
func NewClient(cfg ClientConfig) *http.Client {
tr := &http.Transport{
Proxy: http.ProxyFromEnvironment,
DialContext: (&net.Dialer{
Timeout: cfg.Timeouts.Connect,
KeepAlive: 30 * time.Second,
DualStack: true,
}).DialContext,
MaxIdleConns: 100,
IdleConnTimeout: cfg.Timeouts.IdleConnection,
DisableKeepAlives: !cfg.KeepAlive,
TLSHandshakeTimeout: cfg.Timeouts.TLSHandshake,
ExpectContinueTimeout: cfg.Timeouts.ExpectContinue,
ResponseHeaderTimeout: cfg.Timeouts.ResponseHeader,
}
return &http.Client{
Transport: tr,
}
}
|
[
"func",
"NewClient",
"(",
"cfg",
"ClientConfig",
")",
"*",
"http",
".",
"Client",
"{",
"tr",
":=",
"&",
"http",
".",
"Transport",
"{",
"Proxy",
":",
"http",
".",
"ProxyFromEnvironment",
",",
"DialContext",
":",
"(",
"&",
"net",
".",
"Dialer",
"{",
"Timeout",
":",
"cfg",
".",
"Timeouts",
".",
"Connect",
",",
"KeepAlive",
":",
"30",
"*",
"time",
".",
"Second",
",",
"DualStack",
":",
"true",
",",
"}",
")",
".",
"DialContext",
",",
"MaxIdleConns",
":",
"100",
",",
"IdleConnTimeout",
":",
"cfg",
".",
"Timeouts",
".",
"IdleConnection",
",",
"DisableKeepAlives",
":",
"!",
"cfg",
".",
"KeepAlive",
",",
"TLSHandshakeTimeout",
":",
"cfg",
".",
"Timeouts",
".",
"TLSHandshake",
",",
"ExpectContinueTimeout",
":",
"cfg",
".",
"Timeouts",
".",
"ExpectContinue",
",",
"ResponseHeaderTimeout",
":",
"cfg",
".",
"Timeouts",
".",
"ResponseHeader",
",",
"}",
"\n\n",
"return",
"&",
"http",
".",
"Client",
"{",
"Transport",
":",
"tr",
",",
"}",
"\n",
"}"
] |
// NewClient creates a new HTTP Client using the ClientConfig values.
|
[
"NewClient",
"creates",
"a",
"new",
"HTTP",
"Client",
"using",
"the",
"ClientConfig",
"values",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/example/aws/request/httptrace/client.go#L10-L30
|
2,359 |
aws/aws-sdk-go
|
service/iotjobsdataplane/api.go
|
SetInProgressJobs
|
func (s *GetPendingJobExecutionsOutput) SetInProgressJobs(v []*JobExecutionSummary) *GetPendingJobExecutionsOutput {
s.InProgressJobs = v
return s
}
|
go
|
func (s *GetPendingJobExecutionsOutput) SetInProgressJobs(v []*JobExecutionSummary) *GetPendingJobExecutionsOutput {
s.InProgressJobs = v
return s
}
|
[
"func",
"(",
"s",
"*",
"GetPendingJobExecutionsOutput",
")",
"SetInProgressJobs",
"(",
"v",
"[",
"]",
"*",
"JobExecutionSummary",
")",
"*",
"GetPendingJobExecutionsOutput",
"{",
"s",
".",
"InProgressJobs",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetInProgressJobs sets the InProgressJobs field's value.
|
[
"SetInProgressJobs",
"sets",
"the",
"InProgressJobs",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iotjobsdataplane/api.go#L556-L559
|
2,360 |
aws/aws-sdk-go
|
service/iotjobsdataplane/api.go
|
SetQueuedJobs
|
func (s *GetPendingJobExecutionsOutput) SetQueuedJobs(v []*JobExecutionSummary) *GetPendingJobExecutionsOutput {
s.QueuedJobs = v
return s
}
|
go
|
func (s *GetPendingJobExecutionsOutput) SetQueuedJobs(v []*JobExecutionSummary) *GetPendingJobExecutionsOutput {
s.QueuedJobs = v
return s
}
|
[
"func",
"(",
"s",
"*",
"GetPendingJobExecutionsOutput",
")",
"SetQueuedJobs",
"(",
"v",
"[",
"]",
"*",
"JobExecutionSummary",
")",
"*",
"GetPendingJobExecutionsOutput",
"{",
"s",
".",
"QueuedJobs",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetQueuedJobs sets the QueuedJobs field's value.
|
[
"SetQueuedJobs",
"sets",
"the",
"QueuedJobs",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iotjobsdataplane/api.go#L562-L565
|
2,361 |
aws/aws-sdk-go
|
service/iotjobsdataplane/api.go
|
SetIncludeJobExecutionState
|
func (s *UpdateJobExecutionInput) SetIncludeJobExecutionState(v bool) *UpdateJobExecutionInput {
s.IncludeJobExecutionState = &v
return s
}
|
go
|
func (s *UpdateJobExecutionInput) SetIncludeJobExecutionState(v bool) *UpdateJobExecutionInput {
s.IncludeJobExecutionState = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"UpdateJobExecutionInput",
")",
"SetIncludeJobExecutionState",
"(",
"v",
"bool",
")",
"*",
"UpdateJobExecutionInput",
"{",
"s",
".",
"IncludeJobExecutionState",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetIncludeJobExecutionState sets the IncludeJobExecutionState field's value.
|
[
"SetIncludeJobExecutionState",
"sets",
"the",
"IncludeJobExecutionState",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iotjobsdataplane/api.go#L1000-L1003
|
2,362 |
aws/aws-sdk-go
|
service/iotjobsdataplane/api.go
|
SetExecutionState
|
func (s *UpdateJobExecutionOutput) SetExecutionState(v *JobExecutionState) *UpdateJobExecutionOutput {
s.ExecutionState = v
return s
}
|
go
|
func (s *UpdateJobExecutionOutput) SetExecutionState(v *JobExecutionState) *UpdateJobExecutionOutput {
s.ExecutionState = v
return s
}
|
[
"func",
"(",
"s",
"*",
"UpdateJobExecutionOutput",
")",
"SetExecutionState",
"(",
"v",
"*",
"JobExecutionState",
")",
"*",
"UpdateJobExecutionOutput",
"{",
"s",
".",
"ExecutionState",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetExecutionState sets the ExecutionState field's value.
|
[
"SetExecutionState",
"sets",
"the",
"ExecutionState",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/iotjobsdataplane/api.go#L1056-L1059
|
2,363 |
aws/aws-sdk-go
|
service/cloudfront/api.go
|
SetCachedMethods
|
func (s *AllowedMethods) SetCachedMethods(v *CachedMethods) *AllowedMethods {
s.CachedMethods = v
return s
}
|
go
|
func (s *AllowedMethods) SetCachedMethods(v *CachedMethods) *AllowedMethods {
s.CachedMethods = v
return s
}
|
[
"func",
"(",
"s",
"*",
"AllowedMethods",
")",
"SetCachedMethods",
"(",
"v",
"*",
"CachedMethods",
")",
"*",
"AllowedMethods",
"{",
"s",
".",
"CachedMethods",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetCachedMethods sets the CachedMethods field's value.
|
[
"SetCachedMethods",
"sets",
"the",
"CachedMethods",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudfront/api.go#L4984-L4987
|
2,364 |
aws/aws-sdk-go
|
service/cloudfront/api.go
|
SetPathPattern
|
func (s *CacheBehavior) SetPathPattern(v string) *CacheBehavior {
s.PathPattern = &v
return s
}
|
go
|
func (s *CacheBehavior) SetPathPattern(v string) *CacheBehavior {
s.PathPattern = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"CacheBehavior",
")",
"SetPathPattern",
"(",
"v",
"string",
")",
"*",
"CacheBehavior",
"{",
"s",
".",
"PathPattern",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetPathPattern sets the PathPattern field's value.
|
[
"SetPathPattern",
"sets",
"the",
"PathPattern",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudfront/api.go#L5289-L5292
|
2,365 |
aws/aws-sdk-go
|
service/cloudfront/api.go
|
SetContentTypeProfiles
|
func (s *ContentTypeProfileConfig) SetContentTypeProfiles(v *ContentTypeProfiles) *ContentTypeProfileConfig {
s.ContentTypeProfiles = v
return s
}
|
go
|
func (s *ContentTypeProfileConfig) SetContentTypeProfiles(v *ContentTypeProfiles) *ContentTypeProfileConfig {
s.ContentTypeProfiles = v
return s
}
|
[
"func",
"(",
"s",
"*",
"ContentTypeProfileConfig",
")",
"SetContentTypeProfiles",
"(",
"v",
"*",
"ContentTypeProfiles",
")",
"*",
"ContentTypeProfileConfig",
"{",
"s",
".",
"ContentTypeProfiles",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetContentTypeProfiles sets the ContentTypeProfiles field's value.
|
[
"SetContentTypeProfiles",
"sets",
"the",
"ContentTypeProfiles",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudfront/api.go#L5550-L5553
|
2,366 |
aws/aws-sdk-go
|
service/cloudfront/api.go
|
SetForwardWhenContentTypeIsUnknown
|
func (s *ContentTypeProfileConfig) SetForwardWhenContentTypeIsUnknown(v bool) *ContentTypeProfileConfig {
s.ForwardWhenContentTypeIsUnknown = &v
return s
}
|
go
|
func (s *ContentTypeProfileConfig) SetForwardWhenContentTypeIsUnknown(v bool) *ContentTypeProfileConfig {
s.ForwardWhenContentTypeIsUnknown = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"ContentTypeProfileConfig",
")",
"SetForwardWhenContentTypeIsUnknown",
"(",
"v",
"bool",
")",
"*",
"ContentTypeProfileConfig",
"{",
"s",
".",
"ForwardWhenContentTypeIsUnknown",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetForwardWhenContentTypeIsUnknown sets the ForwardWhenContentTypeIsUnknown field's value.
|
[
"SetForwardWhenContentTypeIsUnknown",
"sets",
"the",
"ForwardWhenContentTypeIsUnknown",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudfront/api.go#L5556-L5559
|
2,367 |
aws/aws-sdk-go
|
service/cloudfront/api.go
|
SetForward
|
func (s *CookiePreference) SetForward(v string) *CookiePreference {
s.Forward = &v
return s
}
|
go
|
func (s *CookiePreference) SetForward(v string) *CookiePreference {
s.Forward = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"CookiePreference",
")",
"SetForward",
"(",
"v",
"string",
")",
"*",
"CookiePreference",
"{",
"s",
".",
"Forward",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetForward sets the Forward field's value.
|
[
"SetForward",
"sets",
"the",
"Forward",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudfront/api.go#L5736-L5739
|
2,368 |
aws/aws-sdk-go
|
service/cloudfront/api.go
|
SetWhitelistedNames
|
func (s *CookiePreference) SetWhitelistedNames(v *CookieNames) *CookiePreference {
s.WhitelistedNames = v
return s
}
|
go
|
func (s *CookiePreference) SetWhitelistedNames(v *CookieNames) *CookiePreference {
s.WhitelistedNames = v
return s
}
|
[
"func",
"(",
"s",
"*",
"CookiePreference",
")",
"SetWhitelistedNames",
"(",
"v",
"*",
"CookieNames",
")",
"*",
"CookiePreference",
"{",
"s",
".",
"WhitelistedNames",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetWhitelistedNames sets the WhitelistedNames field's value.
|
[
"SetWhitelistedNames",
"sets",
"the",
"WhitelistedNames",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudfront/api.go#L5742-L5745
|
2,369 |
aws/aws-sdk-go
|
service/cloudfront/api.go
|
SetDistributionConfigWithTags
|
func (s *CreateDistributionWithTagsInput) SetDistributionConfigWithTags(v *DistributionConfigWithTags) *CreateDistributionWithTagsInput {
s.DistributionConfigWithTags = v
return s
}
|
go
|
func (s *CreateDistributionWithTagsInput) SetDistributionConfigWithTags(v *DistributionConfigWithTags) *CreateDistributionWithTagsInput {
s.DistributionConfigWithTags = v
return s
}
|
[
"func",
"(",
"s",
"*",
"CreateDistributionWithTagsInput",
")",
"SetDistributionConfigWithTags",
"(",
"v",
"*",
"DistributionConfigWithTags",
")",
"*",
"CreateDistributionWithTagsInput",
"{",
"s",
".",
"DistributionConfigWithTags",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetDistributionConfigWithTags sets the DistributionConfigWithTags field's value.
|
[
"SetDistributionConfigWithTags",
"sets",
"the",
"DistributionConfigWithTags",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudfront/api.go#L5960-L5963
|
2,370 |
aws/aws-sdk-go
|
service/cloudfront/api.go
|
SetStreamingDistributionConfigWithTags
|
func (s *CreateStreamingDistributionWithTagsInput) SetStreamingDistributionConfigWithTags(v *StreamingDistributionConfigWithTags) *CreateStreamingDistributionWithTagsInput {
s.StreamingDistributionConfigWithTags = v
return s
}
|
go
|
func (s *CreateStreamingDistributionWithTagsInput) SetStreamingDistributionConfigWithTags(v *StreamingDistributionConfigWithTags) *CreateStreamingDistributionWithTagsInput {
s.StreamingDistributionConfigWithTags = v
return s
}
|
[
"func",
"(",
"s",
"*",
"CreateStreamingDistributionWithTagsInput",
")",
"SetStreamingDistributionConfigWithTags",
"(",
"v",
"*",
"StreamingDistributionConfigWithTags",
")",
"*",
"CreateStreamingDistributionWithTagsInput",
"{",
"s",
".",
"StreamingDistributionConfigWithTags",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetStreamingDistributionConfigWithTags sets the StreamingDistributionConfigWithTags field's value.
|
[
"SetStreamingDistributionConfigWithTags",
"sets",
"the",
"StreamingDistributionConfigWithTags",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudfront/api.go#L6485-L6488
|
2,371 |
aws/aws-sdk-go
|
service/cloudfront/api.go
|
SetErrorCachingMinTTL
|
func (s *CustomErrorResponse) SetErrorCachingMinTTL(v int64) *CustomErrorResponse {
s.ErrorCachingMinTTL = &v
return s
}
|
go
|
func (s *CustomErrorResponse) SetErrorCachingMinTTL(v int64) *CustomErrorResponse {
s.ErrorCachingMinTTL = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"CustomErrorResponse",
")",
"SetErrorCachingMinTTL",
"(",
"v",
"int64",
")",
"*",
"CustomErrorResponse",
"{",
"s",
".",
"ErrorCachingMinTTL",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetErrorCachingMinTTL sets the ErrorCachingMinTTL field's value.
|
[
"SetErrorCachingMinTTL",
"sets",
"the",
"ErrorCachingMinTTL",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudfront/api.go#L6638-L6641
|
2,372 |
aws/aws-sdk-go
|
service/cloudfront/api.go
|
SetResponsePagePath
|
func (s *CustomErrorResponse) SetResponsePagePath(v string) *CustomErrorResponse {
s.ResponsePagePath = &v
return s
}
|
go
|
func (s *CustomErrorResponse) SetResponsePagePath(v string) *CustomErrorResponse {
s.ResponsePagePath = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"CustomErrorResponse",
")",
"SetResponsePagePath",
"(",
"v",
"string",
")",
"*",
"CustomErrorResponse",
"{",
"s",
".",
"ResponsePagePath",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetResponsePagePath sets the ResponsePagePath field's value.
|
[
"SetResponsePagePath",
"sets",
"the",
"ResponsePagePath",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudfront/api.go#L6656-L6659
|
2,373 |
aws/aws-sdk-go
|
service/cloudfront/api.go
|
SetHTTPPort
|
func (s *CustomOriginConfig) SetHTTPPort(v int64) *CustomOriginConfig {
s.HTTPPort = &v
return s
}
|
go
|
func (s *CustomOriginConfig) SetHTTPPort(v int64) *CustomOriginConfig {
s.HTTPPort = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"CustomOriginConfig",
")",
"SetHTTPPort",
"(",
"v",
"int64",
")",
"*",
"CustomOriginConfig",
"{",
"s",
".",
"HTTPPort",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetHTTPPort sets the HTTPPort field's value.
|
[
"SetHTTPPort",
"sets",
"the",
"HTTPPort",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudfront/api.go#L6868-L6871
|
2,374 |
aws/aws-sdk-go
|
service/cloudfront/api.go
|
SetHTTPSPort
|
func (s *CustomOriginConfig) SetHTTPSPort(v int64) *CustomOriginConfig {
s.HTTPSPort = &v
return s
}
|
go
|
func (s *CustomOriginConfig) SetHTTPSPort(v int64) *CustomOriginConfig {
s.HTTPSPort = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"CustomOriginConfig",
")",
"SetHTTPSPort",
"(",
"v",
"int64",
")",
"*",
"CustomOriginConfig",
"{",
"s",
".",
"HTTPSPort",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetHTTPSPort sets the HTTPSPort field's value.
|
[
"SetHTTPSPort",
"sets",
"the",
"HTTPSPort",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudfront/api.go#L6874-L6877
|
2,375 |
aws/aws-sdk-go
|
service/cloudfront/api.go
|
SetOriginKeepaliveTimeout
|
func (s *CustomOriginConfig) SetOriginKeepaliveTimeout(v int64) *CustomOriginConfig {
s.OriginKeepaliveTimeout = &v
return s
}
|
go
|
func (s *CustomOriginConfig) SetOriginKeepaliveTimeout(v int64) *CustomOriginConfig {
s.OriginKeepaliveTimeout = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"CustomOriginConfig",
")",
"SetOriginKeepaliveTimeout",
"(",
"v",
"int64",
")",
"*",
"CustomOriginConfig",
"{",
"s",
".",
"OriginKeepaliveTimeout",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetOriginKeepaliveTimeout sets the OriginKeepaliveTimeout field's value.
|
[
"SetOriginKeepaliveTimeout",
"sets",
"the",
"OriginKeepaliveTimeout",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudfront/api.go#L6880-L6883
|
2,376 |
aws/aws-sdk-go
|
service/cloudfront/api.go
|
SetOriginProtocolPolicy
|
func (s *CustomOriginConfig) SetOriginProtocolPolicy(v string) *CustomOriginConfig {
s.OriginProtocolPolicy = &v
return s
}
|
go
|
func (s *CustomOriginConfig) SetOriginProtocolPolicy(v string) *CustomOriginConfig {
s.OriginProtocolPolicy = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"CustomOriginConfig",
")",
"SetOriginProtocolPolicy",
"(",
"v",
"string",
")",
"*",
"CustomOriginConfig",
"{",
"s",
".",
"OriginProtocolPolicy",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetOriginProtocolPolicy sets the OriginProtocolPolicy field's value.
|
[
"SetOriginProtocolPolicy",
"sets",
"the",
"OriginProtocolPolicy",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudfront/api.go#L6886-L6889
|
2,377 |
aws/aws-sdk-go
|
service/cloudfront/api.go
|
SetOriginReadTimeout
|
func (s *CustomOriginConfig) SetOriginReadTimeout(v int64) *CustomOriginConfig {
s.OriginReadTimeout = &v
return s
}
|
go
|
func (s *CustomOriginConfig) SetOriginReadTimeout(v int64) *CustomOriginConfig {
s.OriginReadTimeout = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"CustomOriginConfig",
")",
"SetOriginReadTimeout",
"(",
"v",
"int64",
")",
"*",
"CustomOriginConfig",
"{",
"s",
".",
"OriginReadTimeout",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetOriginReadTimeout sets the OriginReadTimeout field's value.
|
[
"SetOriginReadTimeout",
"sets",
"the",
"OriginReadTimeout",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudfront/api.go#L6892-L6895
|
2,378 |
aws/aws-sdk-go
|
service/cloudfront/api.go
|
SetOriginSslProtocols
|
func (s *CustomOriginConfig) SetOriginSslProtocols(v *OriginSslProtocols) *CustomOriginConfig {
s.OriginSslProtocols = v
return s
}
|
go
|
func (s *CustomOriginConfig) SetOriginSslProtocols(v *OriginSslProtocols) *CustomOriginConfig {
s.OriginSslProtocols = v
return s
}
|
[
"func",
"(",
"s",
"*",
"CustomOriginConfig",
")",
"SetOriginSslProtocols",
"(",
"v",
"*",
"OriginSslProtocols",
")",
"*",
"CustomOriginConfig",
"{",
"s",
".",
"OriginSslProtocols",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetOriginSslProtocols sets the OriginSslProtocols field's value.
|
[
"SetOriginSslProtocols",
"sets",
"the",
"OriginSslProtocols",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudfront/api.go#L6898-L6901
|
2,379 |
aws/aws-sdk-go
|
service/cloudfront/api.go
|
SetInProgressInvalidationBatches
|
func (s *Distribution) SetInProgressInvalidationBatches(v int64) *Distribution {
s.InProgressInvalidationBatches = &v
return s
}
|
go
|
func (s *Distribution) SetInProgressInvalidationBatches(v int64) *Distribution {
s.InProgressInvalidationBatches = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"Distribution",
")",
"SetInProgressInvalidationBatches",
"(",
"v",
"int64",
")",
"*",
"Distribution",
"{",
"s",
".",
"InProgressInvalidationBatches",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetInProgressInvalidationBatches sets the InProgressInvalidationBatches field's value.
|
[
"SetInProgressInvalidationBatches",
"sets",
"the",
"InProgressInvalidationBatches",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudfront/api.go#L7685-L7688
|
2,380 |
aws/aws-sdk-go
|
service/cloudfront/api.go
|
SetDefaultRootObject
|
func (s *DistributionConfig) SetDefaultRootObject(v string) *DistributionConfig {
s.DefaultRootObject = &v
return s
}
|
go
|
func (s *DistributionConfig) SetDefaultRootObject(v string) *DistributionConfig {
s.DefaultRootObject = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"DistributionConfig",
")",
"SetDefaultRootObject",
"(",
"v",
"string",
")",
"*",
"DistributionConfig",
"{",
"s",
".",
"DefaultRootObject",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetDefaultRootObject sets the DefaultRootObject field's value.
|
[
"SetDefaultRootObject",
"sets",
"the",
"DefaultRootObject",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudfront/api.go#L8083-L8086
|
2,381 |
aws/aws-sdk-go
|
service/cloudfront/api.go
|
SetFieldPatterns
|
func (s *EncryptionEntity) SetFieldPatterns(v *FieldPatterns) *EncryptionEntity {
s.FieldPatterns = v
return s
}
|
go
|
func (s *EncryptionEntity) SetFieldPatterns(v *FieldPatterns) *EncryptionEntity {
s.FieldPatterns = v
return s
}
|
[
"func",
"(",
"s",
"*",
"EncryptionEntity",
")",
"SetFieldPatterns",
"(",
"v",
"*",
"FieldPatterns",
")",
"*",
"EncryptionEntity",
"{",
"s",
".",
"FieldPatterns",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetFieldPatterns sets the FieldPatterns field's value.
|
[
"SetFieldPatterns",
"sets",
"the",
"FieldPatterns",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudfront/api.go#L8736-L8739
|
2,382 |
aws/aws-sdk-go
|
service/cloudfront/api.go
|
SetPublicKeyId
|
func (s *EncryptionEntity) SetPublicKeyId(v string) *EncryptionEntity {
s.PublicKeyId = &v
return s
}
|
go
|
func (s *EncryptionEntity) SetPublicKeyId(v string) *EncryptionEntity {
s.PublicKeyId = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"EncryptionEntity",
")",
"SetPublicKeyId",
"(",
"v",
"string",
")",
"*",
"EncryptionEntity",
"{",
"s",
".",
"PublicKeyId",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetPublicKeyId sets the PublicKeyId field's value.
|
[
"SetPublicKeyId",
"sets",
"the",
"PublicKeyId",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudfront/api.go#L8748-L8751
|
2,383 |
aws/aws-sdk-go
|
service/cloudfront/api.go
|
SetCookies
|
func (s *ForwardedValues) SetCookies(v *CookiePreference) *ForwardedValues {
s.Cookies = v
return s
}
|
go
|
func (s *ForwardedValues) SetCookies(v *CookiePreference) *ForwardedValues {
s.Cookies = v
return s
}
|
[
"func",
"(",
"s",
"*",
"ForwardedValues",
")",
"SetCookies",
"(",
"v",
"*",
"CookiePreference",
")",
"*",
"ForwardedValues",
"{",
"s",
".",
"Cookies",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetCookies sets the Cookies field's value.
|
[
"SetCookies",
"sets",
"the",
"Cookies",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudfront/api.go#L9408-L9411
|
2,384 |
aws/aws-sdk-go
|
service/cloudfront/api.go
|
SetQueryStringCacheKeys
|
func (s *ForwardedValues) SetQueryStringCacheKeys(v *QueryStringCacheKeys) *ForwardedValues {
s.QueryStringCacheKeys = v
return s
}
|
go
|
func (s *ForwardedValues) SetQueryStringCacheKeys(v *QueryStringCacheKeys) *ForwardedValues {
s.QueryStringCacheKeys = v
return s
}
|
[
"func",
"(",
"s",
"*",
"ForwardedValues",
")",
"SetQueryStringCacheKeys",
"(",
"v",
"*",
"QueryStringCacheKeys",
")",
"*",
"ForwardedValues",
"{",
"s",
".",
"QueryStringCacheKeys",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetQueryStringCacheKeys sets the QueryStringCacheKeys field's value.
|
[
"SetQueryStringCacheKeys",
"sets",
"the",
"QueryStringCacheKeys",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudfront/api.go#L9426-L9429
|
2,385 |
aws/aws-sdk-go
|
service/cloudfront/api.go
|
SetRestrictionType
|
func (s *GeoRestriction) SetRestrictionType(v string) *GeoRestriction {
s.RestrictionType = &v
return s
}
|
go
|
func (s *GeoRestriction) SetRestrictionType(v string) *GeoRestriction {
s.RestrictionType = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"GeoRestriction",
")",
"SetRestrictionType",
"(",
"v",
"string",
")",
"*",
"GeoRestriction",
"{",
"s",
".",
"RestrictionType",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetRestrictionType sets the RestrictionType field's value.
|
[
"SetRestrictionType",
"sets",
"the",
"RestrictionType",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudfront/api.go#L9513-L9516
|
2,386 |
aws/aws-sdk-go
|
service/cloudfront/api.go
|
SetPaths
|
func (s *InvalidationBatch) SetPaths(v *Paths) *InvalidationBatch {
s.Paths = v
return s
}
|
go
|
func (s *InvalidationBatch) SetPaths(v *Paths) *InvalidationBatch {
s.Paths = v
return s
}
|
[
"func",
"(",
"s",
"*",
"InvalidationBatch",
")",
"SetPaths",
"(",
"v",
"*",
"Paths",
")",
"*",
"InvalidationBatch",
"{",
"s",
".",
"Paths",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetPaths sets the Paths field's value.
|
[
"SetPaths",
"sets",
"the",
"Paths",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudfront/api.go#L10712-L10715
|
2,387 |
aws/aws-sdk-go
|
service/cloudfront/api.go
|
SetIncludeBody
|
func (s *LambdaFunctionAssociation) SetIncludeBody(v bool) *LambdaFunctionAssociation {
s.IncludeBody = &v
return s
}
|
go
|
func (s *LambdaFunctionAssociation) SetIncludeBody(v bool) *LambdaFunctionAssociation {
s.IncludeBody = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"LambdaFunctionAssociation",
")",
"SetIncludeBody",
"(",
"v",
"bool",
")",
"*",
"LambdaFunctionAssociation",
"{",
"s",
".",
"IncludeBody",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetIncludeBody sets the IncludeBody field's value.
|
[
"SetIncludeBody",
"sets",
"the",
"IncludeBody",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudfront/api.go#L10969-L10972
|
2,388 |
aws/aws-sdk-go
|
service/cloudfront/api.go
|
SetLambdaFunctionARN
|
func (s *LambdaFunctionAssociation) SetLambdaFunctionARN(v string) *LambdaFunctionAssociation {
s.LambdaFunctionARN = &v
return s
}
|
go
|
func (s *LambdaFunctionAssociation) SetLambdaFunctionARN(v string) *LambdaFunctionAssociation {
s.LambdaFunctionARN = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"LambdaFunctionAssociation",
")",
"SetLambdaFunctionARN",
"(",
"v",
"string",
")",
"*",
"LambdaFunctionAssociation",
"{",
"s",
".",
"LambdaFunctionARN",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetLambdaFunctionARN sets the LambdaFunctionARN field's value.
|
[
"SetLambdaFunctionARN",
"sets",
"the",
"LambdaFunctionARN",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudfront/api.go#L10975-L10978
|
2,389 |
aws/aws-sdk-go
|
service/cloudfront/api.go
|
SetCloudFrontOriginAccessIdentityList
|
func (s *ListCloudFrontOriginAccessIdentitiesOutput) SetCloudFrontOriginAccessIdentityList(v *OriginAccessIdentityList) *ListCloudFrontOriginAccessIdentitiesOutput {
s.CloudFrontOriginAccessIdentityList = v
return s
}
|
go
|
func (s *ListCloudFrontOriginAccessIdentitiesOutput) SetCloudFrontOriginAccessIdentityList(v *OriginAccessIdentityList) *ListCloudFrontOriginAccessIdentitiesOutput {
s.CloudFrontOriginAccessIdentityList = v
return s
}
|
[
"func",
"(",
"s",
"*",
"ListCloudFrontOriginAccessIdentitiesOutput",
")",
"SetCloudFrontOriginAccessIdentityList",
"(",
"v",
"*",
"OriginAccessIdentityList",
")",
"*",
"ListCloudFrontOriginAccessIdentitiesOutput",
"{",
"s",
".",
"CloudFrontOriginAccessIdentityList",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetCloudFrontOriginAccessIdentityList sets the CloudFrontOriginAccessIdentityList field's value.
|
[
"SetCloudFrontOriginAccessIdentityList",
"sets",
"the",
"CloudFrontOriginAccessIdentityList",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudfront/api.go#L11105-L11108
|
2,390 |
aws/aws-sdk-go
|
service/cloudfront/api.go
|
SetFieldLevelEncryptionList
|
func (s *ListFieldLevelEncryptionConfigsOutput) SetFieldLevelEncryptionList(v *FieldLevelEncryptionList) *ListFieldLevelEncryptionConfigsOutput {
s.FieldLevelEncryptionList = v
return s
}
|
go
|
func (s *ListFieldLevelEncryptionConfigsOutput) SetFieldLevelEncryptionList(v *FieldLevelEncryptionList) *ListFieldLevelEncryptionConfigsOutput {
s.FieldLevelEncryptionList = v
return s
}
|
[
"func",
"(",
"s",
"*",
"ListFieldLevelEncryptionConfigsOutput",
")",
"SetFieldLevelEncryptionList",
"(",
"v",
"*",
"FieldLevelEncryptionList",
")",
"*",
"ListFieldLevelEncryptionConfigsOutput",
"{",
"s",
".",
"FieldLevelEncryptionList",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetFieldLevelEncryptionList sets the FieldLevelEncryptionList field's value.
|
[
"SetFieldLevelEncryptionList",
"sets",
"the",
"FieldLevelEncryptionList",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudfront/api.go#L11320-L11323
|
2,391 |
aws/aws-sdk-go
|
service/cloudfront/api.go
|
SetFieldLevelEncryptionProfileList
|
func (s *ListFieldLevelEncryptionProfilesOutput) SetFieldLevelEncryptionProfileList(v *FieldLevelEncryptionProfileList) *ListFieldLevelEncryptionProfilesOutput {
s.FieldLevelEncryptionProfileList = v
return s
}
|
go
|
func (s *ListFieldLevelEncryptionProfilesOutput) SetFieldLevelEncryptionProfileList(v *FieldLevelEncryptionProfileList) *ListFieldLevelEncryptionProfilesOutput {
s.FieldLevelEncryptionProfileList = v
return s
}
|
[
"func",
"(",
"s",
"*",
"ListFieldLevelEncryptionProfilesOutput",
")",
"SetFieldLevelEncryptionProfileList",
"(",
"v",
"*",
"FieldLevelEncryptionProfileList",
")",
"*",
"ListFieldLevelEncryptionProfilesOutput",
"{",
"s",
".",
"FieldLevelEncryptionProfileList",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetFieldLevelEncryptionProfileList sets the FieldLevelEncryptionProfileList field's value.
|
[
"SetFieldLevelEncryptionProfileList",
"sets",
"the",
"FieldLevelEncryptionProfileList",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudfront/api.go#L11381-L11384
|
2,392 |
aws/aws-sdk-go
|
service/cloudfront/api.go
|
SetInvalidationList
|
func (s *ListInvalidationsOutput) SetInvalidationList(v *InvalidationList) *ListInvalidationsOutput {
s.InvalidationList = v
return s
}
|
go
|
func (s *ListInvalidationsOutput) SetInvalidationList(v *InvalidationList) *ListInvalidationsOutput {
s.InvalidationList = v
return s
}
|
[
"func",
"(",
"s",
"*",
"ListInvalidationsOutput",
")",
"SetInvalidationList",
"(",
"v",
"*",
"InvalidationList",
")",
"*",
"ListInvalidationsOutput",
"{",
"s",
".",
"InvalidationList",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetInvalidationList sets the InvalidationList field's value.
|
[
"SetInvalidationList",
"sets",
"the",
"InvalidationList",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudfront/api.go#L11472-L11475
|
2,393 |
aws/aws-sdk-go
|
service/cloudfront/api.go
|
SetStreamingDistributionList
|
func (s *ListStreamingDistributionsOutput) SetStreamingDistributionList(v *StreamingDistributionList) *ListStreamingDistributionsOutput {
s.StreamingDistributionList = v
return s
}
|
go
|
func (s *ListStreamingDistributionsOutput) SetStreamingDistributionList(v *StreamingDistributionList) *ListStreamingDistributionsOutput {
s.StreamingDistributionList = v
return s
}
|
[
"func",
"(",
"s",
"*",
"ListStreamingDistributionsOutput",
")",
"SetStreamingDistributionList",
"(",
"v",
"*",
"StreamingDistributionList",
")",
"*",
"ListStreamingDistributionsOutput",
"{",
"s",
".",
"StreamingDistributionList",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetStreamingDistributionList sets the StreamingDistributionList field's value.
|
[
"SetStreamingDistributionList",
"sets",
"the",
"StreamingDistributionList",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudfront/api.go#L11589-L11592
|
2,394 |
aws/aws-sdk-go
|
service/cloudfront/api.go
|
SetIncludeCookies
|
func (s *LoggingConfig) SetIncludeCookies(v bool) *LoggingConfig {
s.IncludeCookies = &v
return s
}
|
go
|
func (s *LoggingConfig) SetIncludeCookies(v bool) *LoggingConfig {
s.IncludeCookies = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"LoggingConfig",
")",
"SetIncludeCookies",
"(",
"v",
"bool",
")",
"*",
"LoggingConfig",
"{",
"s",
".",
"IncludeCookies",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetIncludeCookies sets the IncludeCookies field's value.
|
[
"SetIncludeCookies",
"sets",
"the",
"IncludeCookies",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudfront/api.go#L11742-L11745
|
2,395 |
aws/aws-sdk-go
|
service/cloudfront/api.go
|
SetCustomHeaders
|
func (s *Origin) SetCustomHeaders(v *CustomHeaders) *Origin {
s.CustomHeaders = v
return s
}
|
go
|
func (s *Origin) SetCustomHeaders(v *CustomHeaders) *Origin {
s.CustomHeaders = v
return s
}
|
[
"func",
"(",
"s",
"*",
"Origin",
")",
"SetCustomHeaders",
"(",
"v",
"*",
"CustomHeaders",
")",
"*",
"Origin",
"{",
"s",
".",
"CustomHeaders",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetCustomHeaders sets the CustomHeaders field's value.
|
[
"SetCustomHeaders",
"sets",
"the",
"CustomHeaders",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudfront/api.go#L11888-L11891
|
2,396 |
aws/aws-sdk-go
|
service/cloudfront/api.go
|
SetCustomOriginConfig
|
func (s *Origin) SetCustomOriginConfig(v *CustomOriginConfig) *Origin {
s.CustomOriginConfig = v
return s
}
|
go
|
func (s *Origin) SetCustomOriginConfig(v *CustomOriginConfig) *Origin {
s.CustomOriginConfig = v
return s
}
|
[
"func",
"(",
"s",
"*",
"Origin",
")",
"SetCustomOriginConfig",
"(",
"v",
"*",
"CustomOriginConfig",
")",
"*",
"Origin",
"{",
"s",
".",
"CustomOriginConfig",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetCustomOriginConfig sets the CustomOriginConfig field's value.
|
[
"SetCustomOriginConfig",
"sets",
"the",
"CustomOriginConfig",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudfront/api.go#L11894-L11897
|
2,397 |
aws/aws-sdk-go
|
service/cloudfront/api.go
|
SetOriginPath
|
func (s *Origin) SetOriginPath(v string) *Origin {
s.OriginPath = &v
return s
}
|
go
|
func (s *Origin) SetOriginPath(v string) *Origin {
s.OriginPath = &v
return s
}
|
[
"func",
"(",
"s",
"*",
"Origin",
")",
"SetOriginPath",
"(",
"v",
"string",
")",
"*",
"Origin",
"{",
"s",
".",
"OriginPath",
"=",
"&",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetOriginPath sets the OriginPath field's value.
|
[
"SetOriginPath",
"sets",
"the",
"OriginPath",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudfront/api.go#L11912-L11915
|
2,398 |
aws/aws-sdk-go
|
service/cloudfront/api.go
|
SetS3OriginConfig
|
func (s *Origin) SetS3OriginConfig(v *S3OriginConfig) *Origin {
s.S3OriginConfig = v
return s
}
|
go
|
func (s *Origin) SetS3OriginConfig(v *S3OriginConfig) *Origin {
s.S3OriginConfig = v
return s
}
|
[
"func",
"(",
"s",
"*",
"Origin",
")",
"SetS3OriginConfig",
"(",
"v",
"*",
"S3OriginConfig",
")",
"*",
"Origin",
"{",
"s",
".",
"S3OriginConfig",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetS3OriginConfig sets the S3OriginConfig field's value.
|
[
"SetS3OriginConfig",
"sets",
"the",
"S3OriginConfig",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudfront/api.go#L11918-L11921
|
2,399 |
aws/aws-sdk-go
|
service/cloudfront/api.go
|
SetFailoverCriteria
|
func (s *OriginGroup) SetFailoverCriteria(v *OriginGroupFailoverCriteria) *OriginGroup {
s.FailoverCriteria = v
return s
}
|
go
|
func (s *OriginGroup) SetFailoverCriteria(v *OriginGroupFailoverCriteria) *OriginGroup {
s.FailoverCriteria = v
return s
}
|
[
"func",
"(",
"s",
"*",
"OriginGroup",
")",
"SetFailoverCriteria",
"(",
"v",
"*",
"OriginGroupFailoverCriteria",
")",
"*",
"OriginGroup",
"{",
"s",
".",
"FailoverCriteria",
"=",
"v",
"\n",
"return",
"s",
"\n",
"}"
] |
// SetFailoverCriteria sets the FailoverCriteria field's value.
|
[
"SetFailoverCriteria",
"sets",
"the",
"FailoverCriteria",
"field",
"s",
"value",
"."
] |
6c4060605190fc6f00d63cd4e5572faa9f07345d
|
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/cloudfront/api.go#L12307-L12310
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.