anchor dict | positive dict | negative dict |
|---|---|---|
{
"audio": "",
"image": "",
"text": "func (s *SearchInput) SetPartial(v bool) *SearchInput {\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\ts.Partial = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\n\t\tMap(int64ToInt).\n\t\tWithShrinker(IntShrinker).\n\t\tSuchThat(func(v int) bool {\n\t\t\treturn v >= min && v <= max\n\t\t})\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (s *SearchInput) SetQueryOptions(v string) *SearchInput {\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\ts.QueryOptions = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *SearchInput) SetQueryParser(v string) *SearchInput {\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\ts.QueryParser = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *SearchInput) SetReturn(v string) *SearchInput {\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\ts.Return = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *SearchOutput) SetFacets(v map[string]*BucketInfo)",
"video": ""
} | {
"audio": "",
"image": "",
"text": " *SearchOutput {\n\ts.Facets = v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *SearchOutput) SetHits(v",
"video": ""
} | {
"audio": "",
"image": "",
"text": " *Hits) *SearchOutput {\n\ts.Hits = v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *SuggestModel) SetSuggestions(v []*SuggestionMatch)",
"video": ""
} | {
"audio": "",
"image": "",
"text": " *SuggestModel {\n\ts.Suggestions = v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *SuggestOutput) SetSuggest(v *SuggestModel)",
"video": ""
} | {
"audio": "",
"image": "",
"text": " *SuggestOutput {\n\ts.Suggest = v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *SuggestionMatch) SetSuggestion(v string) *SuggestionMatch {\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\ts.Suggestion = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *UploadDocumentsOutput) SetAdds(v",
"video": ""
} | {
"audio": "",
"image": "",
"text": " int64) *UploadDocumentsOutput {\n\ts.Adds = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (c *EMR) WaitUntilClusterRunning(input *DescribeClusterInput) error {\n\treturn",
"video": ""
} | {
"audio": "",
"image": "",
"text": " c.WaitUntilClusterRunningWithContext(aws.BackgroundContext(), input)\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " func(_ *Client, c *RemoteContext) error {\n\t\tc.Snapshotter = snapshotterName\n\t\treturn nil\n\t}\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (c *EMR) WaitUntilClusterTerminated(input *DescribeClusterInput) error {\n\treturn",
"video": ""
} | {
"audio": "",
"image": "",
"text": " c.WaitUntilClusterTerminatedWithContext(aws.BackgroundContext(), input)\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " func(_ *Client, c *RemoteContext) error {\n\t\tc.Snapshotter = snapshotterName\n\t\treturn nil\n\t}\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (c *EMR) WaitUntilStepComplete(input *DescribeStepInput) error {\n\treturn",
"video": ""
} | {
"audio": "",
"image": "",
"text": " c.WaitUntilStepCompleteWithContext(aws.BackgroundContext(), input)\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " func(_ *Client, c *RemoteContext) error {\n\t\tc.Snapshotter = snapshotterName\n\t\treturn nil\n\t}\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (f paramFiller) typeName(shape *Shape) string {\n\tif f.prefixPackageName && shape.Type",
"video": ""
} | {
"audio": "",
"image": "",
"text": " == \"structure\" {\n\t\treturn \"*\" + shape.API.PackageName() + \".\" + shape.GoTypeElem()\n\t}\n\treturn shape.GoType()\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " b,\n\t\tRadius: r,\n\t\tShape: shape,\n\t}\n\tshape.ShapeClass = seg\n\treturn shape\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func ParamsStructFromJSON(value interface{}, shape *Shape, prefixPackageName bool) string {\n\tf",
"video": ""
} | {
"audio": "",
"image": "",
"text": " := paramFiller{prefixPackageName: prefixPackageName}\n\treturn util.GoFmt(f.paramsStructAny(value, shape))\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " (interface{}, error)) *Init {\n\treturn ini.Branch(func() (interface{}, error) {\n\t\treturn ini.withTimeout(timeout, f)\n\t})\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (f paramFiller) paramsStructAny(value interface{}, shape *Shape) string {\n\tif value == nil {\n\t\treturn \"\"\n\t}\n\n\tswitch shape.Type {\n\tcase \"structure\":\n\t\tif value != nil {\n\t\t\tvmap := value.(map[string]interface{})\n\t\t\treturn f.paramsStructStruct(vma... | {
"audio": "",
"image": "",
"text": "\tif v.IsValid() {\n\t\t\treturn fmt.Sprintf(\"aws.Float64(%v)\", v.Interface())\n\t\t}\n\tcase \"timestamp\":\n\t\tv := reflect.Indirect(reflect.ValueOf(value))\n\t\tif v.IsValid() {\n\t\t\treturn fmt.Sprintf(\"aws.Time(time.Unix(%d, 0))\", int(v.Float()))\n\t\t}\n\tcase \"js... | {
"audio": "",
"image": "",
"text": " a pointer to the value.\n\t\trv2 := reflect.New(rv.Type())\n\t\trv2.Elem().Set(rv)\n\t\tv = rv2.Interface()\n\tcase reflect.Ptr:\n\t\t// Represent slice types as the value itself.\n\t\tswitch rv.Type().Elem().Kind() {\n\t\tcase reflect.Slice:\n\t\t\tif rv.IsNil() {\n\t\t\t\tv... |
{
"audio": "",
"image": "",
"text": "func (f paramFiller) paramsStructStruct(value map[string]interface{}, shape *Shape) string {\n\tout := \"&\" + f.typeName(shape)[1:] + \"{\\n\"\n\tfor _, n := range shape.MemberNames() {\n\t\tref := shape.MemberRefs[n]\n\t\tname := findParamMember(value, n)\n\n\t\tif val",
"... | {
"audio": "",
"image": "",
"text": " := f.paramsStructAny(value[name], ref.Shape); val != \"\" {\n\t\t\tout += fmt.Sprintf(\"%s: %s,\\n\", n, val)\n\t\t}\n\t}\n\tout += \"}\"\n\treturn out\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " {\n\t\tref = &ref.Shape.MemberRef\n\t\tprefix = \"[]\"\n\t}\n\n\tif elem {\n\t\treturn prefix + ref.Shape.GoTypeWithPkgNameElem()\n\t}\n\treturn prefix + ref.GoTypeWithPkgName()\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (f paramFiller) paramsStructMap(value map[string]interface{}, shape *Shape) string {\n\tout := f.typeName(shape) + \"{\\n\"\n\tkeys := util.SortedKeys(value)\n\tfor _, k := range keys {\n\t\tv := value[k]\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tout += fmt.Sprintf(\"%q: %s,\\n\", k, f.paramsStructAny(v, shape.ValueRef.Shape))\n\t}\n\tout += \"}\"\n\treturn out\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\tkey := name\n\tfor _, k := range keys {\n\t\tkey = key + tagsSep + k + tagKVSep + tags[k]\n\t}\n\treturn key\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (f paramFiller) paramsStructList(value []interface{}, shape *Shape) string {\n\tout := f.typeName(shape) +",
"video": ""
} | {
"audio": "",
"image": "",
"text": " \"{\\n\"\n\tfor _, v := range value {\n\t\tout += fmt.Sprintf(\"%s,\\n\", f.paramsStructAny(v, shape.MemberRef.Shape))\n\t}\n\tout += \"}\"\n\treturn out\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " == \"structure\" {\n\t\treturn \"*\" + shape.API.PackageName() + \".\" + shape.GoTypeElem()\n\t}\n\treturn shape.GoType()\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func findParamMember(value map[string]interface{}, key string) string {\n\tfor actualKey := range value {\n\t\tif strings.ToLower(key) ==",
"video": ""
} | {
"audio": "",
"image": "",
"text": " strings.ToLower(actualKey) {\n\t\t\treturn actualKey\n\t\t}\n\t}\n\treturn \"\"\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tif index%2 == 0 {\n\t\t\tkey = value.String()\n\t\t} else {\n\t\t\thash.Set(key, value.Bytes())\n\t\t}\n\t}\n\treturn hash, nil\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (s *Account) SetApiKeyVersion(v string) *Account {\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\ts.ApiKeyVersion = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t})\n\tif err == nil {\n\t\tresp := profResp{}\n\t\terr = json.Unmarshal(body, &resp)\n\t\tif err == nil {\n\t\t\t*account = resp.Account\n\t\t\taccount.inst = insta\n\t\t}\n\t}\n\treturn err\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (s *Account) SetCloudwatchRoleArn(v string) *Account {\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\ts.CloudwatchRoleArn = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t})\n\tif err == nil {\n\t\tresp := profResp{}\n\t\terr = json.Unmarshal(body, &resp)\n\t\tif err == nil {\n\t\t\t*account = resp.Account\n\t\t\taccount.inst = insta\n\t\t}\n\t}\n\treturn err\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (s *Account) SetThrottleSettings(v *ThrottleSettings)",
"video": ""
} | {
"audio": "",
"image": "",
"text": " *Account {\n\ts.ThrottleSettings = v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *CreateApiKeyInput) SetGenerateDistinctId(v bool) *CreateApiKeyInput {\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\ts.GenerateDistinctId = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\n\t\tMap(int64ToInt).\n\t\tWithShrinker(IntShrinker).\n\t\tSuchThat(func(v int) bool {\n\t\t\treturn v >= min && v <= max\n\t\t})\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (s *CreateDeploymentInput) SetStageDescription(v",
"video": ""
} | {
"audio": "",
"image": "",
"text": " string) *CreateDeploymentInput {\n\ts.StageDescription = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *CreateDomainNameInput) SetCertificatePrivateKey(v string) *CreateDomainNameInput {\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\ts.CertificatePrivateKey = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *CreateRestApiInput) SetCloneFrom(v string) *CreateRestApiInput",
"video": ""
} | {
"audio": "",
"image": "",
"text": " {\n\ts.CloneFrom = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *Deployment) SetApiSummary(v map[string]map[string]*MethodSnapshot)",
"video": ""
} | {
"audio": "",
"image": "",
"text": " *Deployment {\n\ts.ApiSummary = v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *DomainName) SetDistributionDomainName(v string) *DomainName {\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\ts.DistributionDomainName = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *DomainName) SetDistributionHostedZoneId(v string) *DomainName {\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\ts.DistributionHostedZoneId = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *DomainName) SetRegionalDomainName(v string) *DomainName {\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\ts.RegionalDomainName = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *DomainName) SetRegionalHostedZoneId(v string) *DomainName {\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\ts.RegionalHostedZoneId = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *GetApiKeyInput) SetIncludeValue(v bool) *GetApiKeyInput {\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\ts.IncludeValue = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\n\t\tMap(int64ToInt).\n\t\tWithShrinker(IntShrinker).\n\t\tSuchThat(func(v int) bool {\n\t\t\treturn v >= min && v <= max\n\t\t})\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (s *GetApiKeysInput) SetIncludeValues(v bool) *GetApiKeysInput {\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\ts.IncludeValues = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\n\t\tMap(int64ToInt).\n\t\tWithShrinker(IntShrinker).\n\t\tSuchThat(func(v int) bool {\n\t\t\treturn v >= min && v <= max\n\t\t})\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (s *GetDocumentationPartsInput) SetLocationStatus(v",
"video": ""
} | {
"audio": "",
"image": "",
"text": " string) *GetDocumentationPartsInput {\n\ts.LocationStatus = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *GetExportInput) SetAccepts(v",
"video": ""
} | {
"audio": "",
"image": "",
"text": " string) *GetExportInput {\n\ts.Accepts = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *GetModelInput) SetFlatten(v bool) *GetModelInput {\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\ts.Flatten = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\n\t\tMap(int64ToInt).\n\t\tWithShrinker(IntShrinker).\n\t\tSuchThat(func(v int) bool {\n\t\t\treturn v >= min && v <= max\n\t\t})\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (s *GetSdkInput) SetSdkType(v string) *GetSdkInput {\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\ts.SdkType = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *Integration) SetIntegrationResponses(v map[string]*IntegrationResponse)",
"video": ""
} | {
"audio": "",
"image": "",
"text": " *Integration {\n\ts.IntegrationResponses = v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *Method) SetMethodIntegration(v *Integration)",
"video": ""
} | {
"audio": "",
"image": "",
"text": " *Method {\n\ts.MethodIntegration = v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *Method) SetMethodResponses(v map[string]*MethodResponse)",
"video": ""
} | {
"audio": "",
"image": "",
"text": " *Method {\n\ts.MethodResponses = v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *MethodSetting) SetCacheDataEncrypted(v bool) *MethodSetting {\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\ts.CacheDataEncrypted = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\n\t\tMap(int64ToInt).\n\t\tWithShrinker(IntShrinker).\n\t\tSuchThat(func(v int) bool {\n\t\t\treturn v >= min && v <= max\n\t\t})\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (s *MethodSetting) SetCacheTtlInSeconds(v int64) *MethodSetting {\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\ts.CacheTtlInSeconds = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " v.Int64 != 0 {\n\t\tenc.Int64(v.Int64)\n\t}\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (s *MethodSetting) SetCachingEnabled(v bool) *MethodSetting {\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\ts.CachingEnabled = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\n\t\tMap(int64ToInt).\n\t\tWithShrinker(IntShrinker).\n\t\tSuchThat(func(v int) bool {\n\t\t\treturn v >= min && v <= max\n\t\t})\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (s *MethodSetting) SetMetricsEnabled(v bool) *MethodSetting {\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\ts.MetricsEnabled = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\n\t\tMap(int64ToInt).\n\t\tWithShrinker(IntShrinker).\n\t\tSuchThat(func(v int) bool {\n\t\t\treturn v >= min && v <= max\n\t\t})\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (s *MethodSetting) SetRequireAuthorizationForCacheControl(v bool) *MethodSetting {\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\ts.RequireAuthorizationForCacheControl = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\n\t\tMap(int64ToInt).\n\t\tWithShrinker(IntShrinker).\n\t\tSuchThat(func(v int) bool {\n\t\t\treturn v >= min && v <= max\n\t\t})\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (s *MethodSetting) SetUnauthorizedCacheControlHeaderStrategy(v string) *MethodSetting {\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\ts.UnauthorizedCacheControlHeaderStrategy = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *PutIntegrationInput) SetIntegrationHttpMethod(v string) *PutIntegrationInput {\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\ts.IntegrationHttpMethod = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *Resource) SetResourceMethods(v map[string]*Method)",
"video": ""
} | {
"audio": "",
"image": "",
"text": " *Resource {\n\ts.ResourceMethods = v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *Stage) SetMethodSettings(v map[string]*MethodSetting)",
"video": ""
} | {
"audio": "",
"image": "",
"text": " *Stage {\n\ts.MethodSettings = v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *Stage) SetWebAclArn(v string) *Stage {\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\ts.WebAclArn = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *TestInvokeAuthorizerInput) SetAdditionalContext(v",
"video": ""
} | {
"audio": "",
"image": "",
"text": " map[string]*string) *TestInvokeAuthorizerInput {\n\ts.AdditionalContext = v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *TestInvokeAuthorizerOutput) SetAuthorization(v map[string][]*string)",
"video": ""
} | {
"audio": "",
"image": "",
"text": " *TestInvokeAuthorizerOutput {\n\ts.Authorization = v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *TestInvokeAuthorizerOutput) SetClaims(v map[string]*string)",
"video": ""
} | {
"audio": "",
"image": "",
"text": " *TestInvokeAuthorizerOutput {\n\ts.Claims = v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *TestInvokeAuthorizerOutput) SetClientStatus(v",
"video": ""
} | {
"audio": "",
"image": "",
"text": " int64) *TestInvokeAuthorizerOutput {\n\ts.ClientStatus = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *ThrottleSettings) SetBurstLimit(v int64) *ThrottleSettings {\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\ts.BurstLimit = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " v.Int64 != 0 {\n\t\tenc.Int64(v.Int64)\n\t}\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (s *UpdateGatewayResponseOutput) SetDefaultResponse(v",
"video": ""
} | {
"audio": "",
"image": "",
"text": " bool) *UpdateGatewayResponseOutput {\n\ts.DefaultResponse = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (c *Route53) WaitUntilResourceRecordSetsChanged(input *GetChangeInput) error {\n\treturn",
"video": ""
} | {
"audio": "",
"image": "",
"text": " c.WaitUntilResourceRecordSetsChangedWithContext(aws.BackgroundContext(), input)\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " func(_ *Client, c *RemoteContext) error {\n\t\tc.Snapshotter = snapshotterName\n\t\treturn nil\n\t}\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (strat S3SaveStrategy) Save(env Envelope, req *request.Request) error {\n\tinput := req.Params.(*s3.PutObjectInput)\n\tb, err := json.Marshal(env)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tinstInput := s3.PutObjectInput{\n\t\tBucket: input.Bucket,\n\t\tBody: bytes.Ne... | {
"audio": "",
"image": "",
"text": " {\n\t\tinstInput.Key = aws.String(*input.Key + DefaultInstructionKeySuffix)\n\t} else {\n\t\tinstInput.Key = aws.String(*input.Key + strat.InstructionFileSuffix)\n\t}\n\n\t_, err = strat.Client.PutObject(&instInput)\n\treturn err\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tPort uint16 `json:\"port,omitempty\"`\n\t}\n\tif err := json.Unmarshal(b, &input); err != nil {\n\t\treturn err\n\t}\n\tu.Scheme = input.Scheme\n\tu.Host = input.Host\n\tu.Port = input.Port\n\treturn nil\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (strat HeaderV2SaveStrategy) Save(env Envelope, req *request.Request) error {\n\tinput := req.Params.(*s3.PutObjectInput)\n\tif input.Metadata == nil {\n\t\tinput.Metadata = map[string]*string{}\n\t}\n\n\tinput.Metadata[http.CanonicalHeaderKey(keyV2Header)] = &env.CipherK... | {
"audio": "",
"image": "",
"text": " &env.CEKAlg\n\tinput.Metadata[http.CanonicalHeaderKey(unencryptedMD5Header)] = &env.UnencryptedMD5\n\tinput.Metadata[http.CanonicalHeaderKey(unencryptedContentLengthHeader)] = &env.UnencryptedContentLen\n\n\tif len(env.TagLen) > 0 {\n\t\tinput.Metadata[http.CanonicalHeaderKey... | {
"audio": "",
"image": "",
"text": "\t\tPort uint16 `json:\"port,omitempty\"`\n\t}\n\tif err := json.Unmarshal(b, &input); err != nil {\n\t\treturn err\n\t}\n\tu.Scheme = input.Scheme\n\tu.Host = input.Host\n\tu.Port = input.Port\n\treturn nil\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (load S3LoadStrategy) Load(req *request.Request) (Envelope, error) {\n\tenv := Envelope{}\n\tif load.InstructionFileSuffix == \"\" {\n\t\tload.InstructionFileSuffix = DefaultInstructionKeySuffix\n\t}\n\n\tinput := req.Params.(*s3.GetObjectInput)\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\tout, err := load.Client.GetObject(&s3.GetObjectInput{\n\t\tKey: aws.String(strings.Join([]string{*input.Key, load.InstructionFileSuffix}, \"\")),\n\t\tBucket: input.Bucket,\n\t})\n\tif err != nil {\n\t\treturn env, err\n\t}\n\n\tb, err := ioutil.ReadAll(out.Body)\n\tif er... | {
"audio": "",
"image": "",
"text": " {\n\treturn v.configuration.Load().(*v1beta1.ValidatingWebhookConfiguration).Webhooks\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (load HeaderV2LoadStrategy) Load(req *request.Request) (Envelope, error) {\n\tenv := Envelope{}\n\tenv.CipherKey = req.HTTPResponse.Header.Get(strings.Join([]string{metaHeader, keyV2Header}, \"-\"))\n\tenv.IV = req.HTTPResponse.Header.Get(strings.Join([]string{metaHeader,... | {
"audio": "",
"image": "",
"text": "\tenv.WrapAlg = req.HTTPResponse.Header.Get(strings.Join([]string{metaHeader, wrapAlgorithmHeader}, \"-\"))\n\tenv.CEKAlg = req.HTTPResponse.Header.Get(strings.Join([]string{metaHeader, cekAlgorithmHeader}, \"-\"))\n\tenv.TagLen = req.HTTPResponse.Header.Get(strings.Join([]str... | {
"audio": "",
"image": "",
"text": "\treturn req.Header.Get(key)\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func GetBucketRegionWithClient(ctx aws.Context, svc s3iface.S3API, bucket string, opts ...request.Option) (string, error) {\n\treq, _ := svc.HeadBucketRequest(&s3.HeadBucketInput{\n\t\tBucket: aws.String(bucket),\n\t})\n\treq.Config.S3ForcePathStyle = aws.Bool(true)\n\treq.Con... | {
"audio": "",
"image": "",
"text": " true\n\n\tvar bucketRegion string\n\treq.Handlers.Send.PushBack(func(r *request.Request) {\n\t\tbucketRegion = r.HTTPResponse.Header.Get(bucketRegionHeader)\n\t\tif len(bucketRegion) == 0 {\n\t\t\treturn\n\t\t}\n\t\tr.HTTPResponse.StatusCode = 200\n\t\tr.HTTPResponse.Status =... | {
"audio": "",
"image": "",
"text": " request error (%v)\", err)\n\t}\n\treq.Header.Set(\"Content-Type\", ct)\n\treq.Header.Set(\"X-Server-From\", from.String())\n\treq.Header.Set(\"X-Server-Version\", version.Version)\n\treq.Header.Set(\"X-Min-Cluster-Version\", version.MinClusterVersion)\n\treq.Header.Set(\"X-E... |
{
"audio": "",
"image": "",
"text": "func (s *BundleDetails) SetAvailablePlatforms(v []*string) *BundleDetails {\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\ts.AvailablePlatforms = v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *DeleteProjectOutput) SetDeletedResources(v []*Resource) *DeleteProjectOutput",
"video": ""
} | {
"audio": "",
"image": "",
"text": " {\n\ts.DeletedResources = v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *DeleteProjectOutput) SetOrphanedResources(v []*Resource) *DeleteProjectOutput",
"video": ""
} | {
"audio": "",
"image": "",
"text": " {\n\ts.OrphanedResources = v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *DescribeProjectInput) SetSyncFromResources(v bool) *DescribeProjectInput {\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\ts.SyncFromResources = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\n\t\tMap(int64ToInt).\n\t\tWithShrinker(IntShrinker).\n\t\tSuchThat(func(v int) bool {\n\t\t\treturn v >= min && v <= max\n\t\t})\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (s *ExportProjectOutput) SetShareUrl(v string) *ExportProjectOutput",
"video": ""
} | {
"audio": "",
"image": "",
"text": " {\n\ts.ShareUrl = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *ListBundlesOutput) SetBundleList(v []*BundleDetails)",
"video": ""
} | {
"audio": "",
"image": "",
"text": " *ListBundlesOutput {\n\ts.BundleList = v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *ProjectDetails) SetConsoleUrl(v string) *ProjectDetails {\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\ts.ConsoleUrl = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *Resource) SetFeature(v string) *Resource {\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\ts.Feature = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *Backup) SetBackupState(v string) *Backup {\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\ts.BackupState = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " *Backup {\n\ts.CopyTimestamp = &v\n\treturn s\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (s *Backup) SetCopyTimestamp(v time.Time)",
"video": ""
} | {
"audio": "",
"image": "",
"text": " *Backup {\n\ts.CopyTimestamp = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\tnowFunc: func() time.Time { return time.Now().In(time.UTC) },\n\t}\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (s *Backup) SetDeleteTimestamp(v time.Time) *Backup {\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\ts.DeleteTimestamp = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " *Backup {\n\ts.CopyTimestamp = &v\n\treturn s\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (s *Certificates) SetAwsHardwareCertificate(v string) *Certificates {\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\ts.AwsHardwareCertificate = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *Certificates) SetClusterCertificate(v string) *Certificates {\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\ts.ClusterCertificate = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *Certificates) SetClusterCsr(v string) *Certificates {\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\ts.ClusterCsr = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *Certificates) SetHsmCertificate(v string) *Certificates {\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\ts.HsmCertificate = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *Certificates) SetManufacturerHardwareCertificate(v string) *Certificates {\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\ts.ManufacturerHardwareCertificate = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *Cluster) SetBackupPolicy(v string) *Cluster {\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\ts.BackupPolicy = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " *Cluster {\n\ts.ClusterParameterGroups = v\n\treturn s\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (s *Cluster) SetHsms(v []*Hsm)",
"video": ""
} | {
"audio": "",
"image": "",
"text": " *Cluster {\n\ts.Hsms = v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " *Cluster {\n\ts.ClusterParameterGroups = v\n\treturn s\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (s *Cluster) SetPreCoPassword(v string) *Cluster {\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\ts.PreCoPassword = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " *Cluster {\n\ts.ClusterParameterGroups = v\n\treturn s\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (s *Cluster) SetSubnetMapping(v map[string]*string)",
"video": ""
} | {
"audio": "",
"image": "",
"text": " *Cluster {\n\ts.SubnetMapping = v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " *Cluster {\n\ts.ClusterParameterGroups = v\n\treturn s\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (s *CopyBackupToRegionOutput) SetDestinationBackup(v",
"video": ""
} | {
"audio": "",
"image": "",
"text": " *DestinationBackup) *CopyBackupToRegionOutput {\n\ts.DestinationBackup = v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *CreateHsmOutput) SetHsm(v *Hsm) *CreateHsmOutput",
"video": ""
} | {
"audio": "",
"image": "",
"text": " {\n\ts.Hsm = v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *DescribeBackupsInput) SetSortAscending(v",
"video": ""
} | {
"audio": "",
"image": "",
"text": " bool) *DescribeBackupsInput {\n\ts.SortAscending = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *InitializeClusterInput) SetSignedCert(v",
"video": ""
} | {
"audio": "",
"image": "",
"text": " string) *InitializeClusterInput {\n\ts.SignedCert = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *InitializeClusterInput) SetTrustAnchor(v",
"video": ""
} | {
"audio": "",
"image": "",
"text": " string) *InitializeClusterInput {\n\ts.TrustAnchor = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (exs Examples) Names() []string {\n\tnames := make([]string, 0, len(exs))\n\tfor k := range exs {\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tnames = append(names, k)\n\t}\n\n\tsort.Strings(names)\n\treturn names\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " := range serviceaccount.Secrets {\n\t\tnames.Insert(secret.Name)\n\t}\n\treturn names\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func correctType(memName string, t string, value interface{}) string {\n\tif value == nil {\n\t\treturn \"\"\n\t}\n\n\tv := \"\"\n\tswitch value.(type) {\n\tcase string:\n\t\tv = value.(string)\n\tcase int:\n\t\tv = fmt.Sprintf(\"%d\", value.(int))\n\tcase float64:\n\t\tif t =... | {
"audio": "",
"image": "",
"text": " {\n\t\t\tv = fmt.Sprintf(\"%d\", int(value.(float64)))\n\t\t} else {\n\t\t\tv = fmt.Sprintf(\"%f\", value.(float64))\n\t\t}\n\tcase bool:\n\t\tv = fmt.Sprintf(\"%t\", value.(bool))\n\t}\n\n\treturn convertToCorrectType(memName, t, v)\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " nil\n\t}\n\tif t.Value != nil {\n\t\tt.Value.Finalize()\n\t\tt.Value = nil\n\t}\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (a *API) ExamplesGoCode() string {\n\tvar buf bytes.Buffer\n\tvar builder examplesBuilder\n\tok := false\n\tif builder, ok = examplesBuilderCustomizations[a.PackageName()]; !ok {\n\t\tbuilder =",
"video": ""
} | {
"audio": "",
"image": "",
"text": " defaultExamplesBuilder{}\n\t}\n\n\tif err := exampleHeader.ExecuteTemplate(&buf, \"exampleHeader\", &exHeader{builder, a}); err != nil {\n\t\tpanic(err)\n\t}\n\n\tcode := a.Examples.GoCode()\n\tif len(code) == 0 {\n\t\treturn \"\"\n\t}\n\n\tbuf.WriteString(code)\n\treturn buf... | {
"audio": "",
"image": "",
"text": " < length; i++ {\n\t\t\tbuffer.WriteString(builder.ph())\n\n\t\t\tif i < length-1 {\n\t\t\t\tbuffer.WriteString(\",\")\n\t\t\t}\n\t\t}\n\t\tbuffer.WriteString(\")\")\n\t}\n\n\tif builder.returnField != \"\" {\n\t\tbuffer.WriteString(\" RETURNING \")\n\t\tbuffer.WriteString(bui... |
{
"audio": "",
"image": "",
"text": "func (s *DashPackage) SetManifestLayout(v string) *DashPackage {\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\ts.ManifestLayout = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *DashPackage) SetMinBufferTimeSeconds(v int64) *DashPackage {\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\ts.MinBufferTimeSeconds = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " v.Int64 != 0 {\n\t\tenc.Int64(v.Int64)\n\t}\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (s *DashPackage) SetMinUpdatePeriodSeconds(v int64) *DashPackage {\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\ts.MinUpdatePeriodSeconds = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " v.Int64 != 0 {\n\t\tenc.Int64(v.Int64)\n\t}\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (s *DashPackage) SetPeriodTriggers(v []*string) *DashPackage {\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\ts.PeriodTriggers = v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *DashPackage) SetSegmentTemplateFormat(v string) *DashPackage {\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\ts.SegmentTemplateFormat = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *DashPackage) SetSuggestedPresentationDelaySeconds(v int64) *DashPackage {\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\ts.SuggestedPresentationDelaySeconds = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": " v.Int64 != 0 {\n\t\tenc.Int64(v.Int64)\n\t}\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (s *HlsEncryption) SetRepeatExtXKey(v bool) *HlsEncryption {\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\ts.RepeatExtXKey = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\n\t\tMap(int64ToInt).\n\t\tWithShrinker(IntShrinker).\n\t\tSuchThat(func(v int) bool {\n\t\t\treturn v >= min && v <= max\n\t\t})\n}",
"video": ""
} |
{
"audio": "",
"image": "",
"text": "func (s *HlsIngest) SetIngestEndpoints(v []*IngestEndpoint)",
"video": ""
} | {
"audio": "",
"image": "",
"text": " *HlsIngest {\n\ts.IngestEndpoints = v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\t\tverStr = v.String()\n\t\t\t}\n\t\t\ts.goAttach(func() { s.updateClusterVersion(verStr) })\n\t\t\tcontinue\n\t\t}\n\n\t\t// update cluster version only if the decided version is greater than\n\t\t// the current cluster version\n\t\tif v != nil && s.cluster.Version().LessTha... |
{
"audio": "",
"image": "",
"text": "func (s *HlsPackage) SetUseAudioRenditionGroup(v bool) *HlsPackage {\n",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\ts.UseAudioRenditionGroup = &v\n\treturn s\n}",
"video": ""
} | {
"audio": "",
"image": "",
"text": "\n\t\tMap(int64ToInt).\n\t\tWithShrinker(IntShrinker).\n\t\tSuchThat(func(v int) bool {\n\t\t\treturn v >= min && v <= max\n\t\t})\n}",
"video": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.