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
sequencelengths
21
1.41k
docstring
stringlengths
6
2.61k
docstring_tokens
sequencelengths
3
215
sha
stringlengths
40
40
url
stringlengths
85
252
2,600
aws/aws-sdk-go
service/directconnect/api.go
SetDirectConnectGatewayState
func (s *Gateway) SetDirectConnectGatewayState(v string) *Gateway { s.DirectConnectGatewayState = &v return s }
go
func (s *Gateway) SetDirectConnectGatewayState(v string) *Gateway { s.DirectConnectGatewayState = &v return s }
[ "func", "(", "s", "*", "Gateway", ")", "SetDirectConnectGatewayState", "(", "v", "string", ")", "*", "Gateway", "{", "s", ".", "DirectConnectGatewayState", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetDirectConnectGatewayState sets the DirectConnectGatewayState field's value.
[ "SetDirectConnectGatewayState", "sets", "the", "DirectConnectGatewayState", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/directconnect/api.go#L8477-L8480
2,601
aws/aws-sdk-go
service/directconnect/api.go
SetAllowedPrefixesToDirectConnectGateway
func (s *GatewayAssociation) SetAllowedPrefixesToDirectConnectGateway(v []*RouteFilterPrefix) *GatewayAssociation { s.AllowedPrefixesToDirectConnectGateway = v return s }
go
func (s *GatewayAssociation) SetAllowedPrefixesToDirectConnectGateway(v []*RouteFilterPrefix) *GatewayAssociation { s.AllowedPrefixesToDirectConnectGateway = v return s }
[ "func", "(", "s", "*", "GatewayAssociation", ")", "SetAllowedPrefixesToDirectConnectGateway", "(", "v", "[", "]", "*", "RouteFilterPrefix", ")", "*", "GatewayAssociation", "{", "s", ".", "AllowedPrefixesToDirectConnectGateway", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetAllowedPrefixesToDirectConnectGateway sets the AllowedPrefixesToDirectConnectGateway field's value.
[ "SetAllowedPrefixesToDirectConnectGateway", "sets", "the", "AllowedPrefixesToDirectConnectGateway", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/directconnect/api.go#L8552-L8555
2,602
aws/aws-sdk-go
service/directconnect/api.go
SetAssociationState
func (s *GatewayAssociation) SetAssociationState(v string) *GatewayAssociation { s.AssociationState = &v return s }
go
func (s *GatewayAssociation) SetAssociationState(v string) *GatewayAssociation { s.AssociationState = &v return s }
[ "func", "(", "s", "*", "GatewayAssociation", ")", "SetAssociationState", "(", "v", "string", ")", "*", "GatewayAssociation", "{", "s", ".", "AssociationState", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetAssociationState sets the AssociationState field's value.
[ "SetAssociationState", "sets", "the", "AssociationState", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/directconnect/api.go#L8570-L8573
2,603
aws/aws-sdk-go
service/directconnect/api.go
SetVirtualGatewayOwnerAccount
func (s *GatewayAssociation) SetVirtualGatewayOwnerAccount(v string) *GatewayAssociation { s.VirtualGatewayOwnerAccount = &v return s }
go
func (s *GatewayAssociation) SetVirtualGatewayOwnerAccount(v string) *GatewayAssociation { s.VirtualGatewayOwnerAccount = &v return s }
[ "func", "(", "s", "*", "GatewayAssociation", ")", "SetVirtualGatewayOwnerAccount", "(", "v", "string", ")", "*", "GatewayAssociation", "{", "s", ".", "VirtualGatewayOwnerAccount", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetVirtualGatewayOwnerAccount sets the VirtualGatewayOwnerAccount field's value.
[ "SetVirtualGatewayOwnerAccount", "sets", "the", "VirtualGatewayOwnerAccount", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/directconnect/api.go#L8600-L8603
2,604
aws/aws-sdk-go
service/directconnect/api.go
SetVirtualGatewayRegion
func (s *GatewayAssociation) SetVirtualGatewayRegion(v string) *GatewayAssociation { s.VirtualGatewayRegion = &v return s }
go
func (s *GatewayAssociation) SetVirtualGatewayRegion(v string) *GatewayAssociation { s.VirtualGatewayRegion = &v return s }
[ "func", "(", "s", "*", "GatewayAssociation", ")", "SetVirtualGatewayRegion", "(", "v", "string", ")", "*", "GatewayAssociation", "{", "s", ".", "VirtualGatewayRegion", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetVirtualGatewayRegion sets the VirtualGatewayRegion field's value.
[ "SetVirtualGatewayRegion", "sets", "the", "VirtualGatewayRegion", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/directconnect/api.go#L8606-L8609
2,605
aws/aws-sdk-go
service/directconnect/api.go
SetExistingAllowedPrefixesToDirectConnectGateway
func (s *GatewayAssociationProposal) SetExistingAllowedPrefixesToDirectConnectGateway(v []*RouteFilterPrefix) *GatewayAssociationProposal { s.ExistingAllowedPrefixesToDirectConnectGateway = v return s }
go
func (s *GatewayAssociationProposal) SetExistingAllowedPrefixesToDirectConnectGateway(v []*RouteFilterPrefix) *GatewayAssociationProposal { s.ExistingAllowedPrefixesToDirectConnectGateway = v return s }
[ "func", "(", "s", "*", "GatewayAssociationProposal", ")", "SetExistingAllowedPrefixesToDirectConnectGateway", "(", "v", "[", "]", "*", "RouteFilterPrefix", ")", "*", "GatewayAssociationProposal", "{", "s", ".", "ExistingAllowedPrefixesToDirectConnectGateway", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetExistingAllowedPrefixesToDirectConnectGateway sets the ExistingAllowedPrefixesToDirectConnectGateway field's value.
[ "SetExistingAllowedPrefixesToDirectConnectGateway", "sets", "the", "ExistingAllowedPrefixesToDirectConnectGateway", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/directconnect/api.go#L8676-L8679
2,606
aws/aws-sdk-go
service/directconnect/api.go
SetProposalState
func (s *GatewayAssociationProposal) SetProposalState(v string) *GatewayAssociationProposal { s.ProposalState = &v return s }
go
func (s *GatewayAssociationProposal) SetProposalState(v string) *GatewayAssociationProposal { s.ProposalState = &v return s }
[ "func", "(", "s", "*", "GatewayAssociationProposal", ")", "SetProposalState", "(", "v", "string", ")", "*", "GatewayAssociationProposal", "{", "s", ".", "ProposalState", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetProposalState sets the ProposalState field's value.
[ "SetProposalState", "sets", "the", "ProposalState", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/directconnect/api.go#L8688-L8691
2,607
aws/aws-sdk-go
service/directconnect/api.go
SetRequestedAllowedPrefixesToDirectConnectGateway
func (s *GatewayAssociationProposal) SetRequestedAllowedPrefixesToDirectConnectGateway(v []*RouteFilterPrefix) *GatewayAssociationProposal { s.RequestedAllowedPrefixesToDirectConnectGateway = v return s }
go
func (s *GatewayAssociationProposal) SetRequestedAllowedPrefixesToDirectConnectGateway(v []*RouteFilterPrefix) *GatewayAssociationProposal { s.RequestedAllowedPrefixesToDirectConnectGateway = v return s }
[ "func", "(", "s", "*", "GatewayAssociationProposal", ")", "SetRequestedAllowedPrefixesToDirectConnectGateway", "(", "v", "[", "]", "*", "RouteFilterPrefix", ")", "*", "GatewayAssociationProposal", "{", "s", ".", "RequestedAllowedPrefixesToDirectConnectGateway", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetRequestedAllowedPrefixesToDirectConnectGateway sets the RequestedAllowedPrefixesToDirectConnectGateway field's value.
[ "SetRequestedAllowedPrefixesToDirectConnectGateway", "sets", "the", "RequestedAllowedPrefixesToDirectConnectGateway", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/directconnect/api.go#L8694-L8697
2,608
aws/aws-sdk-go
service/directconnect/api.go
SetAttachmentType
func (s *GatewayAttachment) SetAttachmentType(v string) *GatewayAttachment { s.AttachmentType = &v return s }
go
func (s *GatewayAttachment) SetAttachmentType(v string) *GatewayAttachment { s.AttachmentType = &v return s }
[ "func", "(", "s", "*", "GatewayAttachment", ")", "SetAttachmentType", "(", "v", "string", ")", "*", "GatewayAttachment", "{", "s", ".", "AttachmentType", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetAttachmentType sets the AttachmentType field's value.
[ "SetAttachmentType", "sets", "the", "AttachmentType", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/directconnect/api.go#L8755-L8758
2,609
aws/aws-sdk-go
service/directconnect/api.go
SetVirtualInterfaceOwnerAccount
func (s *GatewayAttachment) SetVirtualInterfaceOwnerAccount(v string) *GatewayAttachment { s.VirtualInterfaceOwnerAccount = &v return s }
go
func (s *GatewayAttachment) SetVirtualInterfaceOwnerAccount(v string) *GatewayAttachment { s.VirtualInterfaceOwnerAccount = &v return s }
[ "func", "(", "s", "*", "GatewayAttachment", ")", "SetVirtualInterfaceOwnerAccount", "(", "v", "string", ")", "*", "GatewayAttachment", "{", "s", ".", "VirtualInterfaceOwnerAccount", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetVirtualInterfaceOwnerAccount sets the VirtualInterfaceOwnerAccount field's value.
[ "SetVirtualInterfaceOwnerAccount", "sets", "the", "VirtualInterfaceOwnerAccount", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/directconnect/api.go#L8779-L8782
2,610
aws/aws-sdk-go
service/directconnect/api.go
SetVirtualInterfaceRegion
func (s *GatewayAttachment) SetVirtualInterfaceRegion(v string) *GatewayAttachment { s.VirtualInterfaceRegion = &v return s }
go
func (s *GatewayAttachment) SetVirtualInterfaceRegion(v string) *GatewayAttachment { s.VirtualInterfaceRegion = &v return s }
[ "func", "(", "s", "*", "GatewayAttachment", ")", "SetVirtualInterfaceRegion", "(", "v", "string", ")", "*", "GatewayAttachment", "{", "s", ".", "VirtualInterfaceRegion", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetVirtualInterfaceRegion sets the VirtualInterfaceRegion field's value.
[ "SetVirtualInterfaceRegion", "sets", "the", "VirtualInterfaceRegion", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/directconnect/api.go#L8785-L8788
2,611
aws/aws-sdk-go
service/directconnect/api.go
SetAllowsHostedConnections
func (s *Lag) SetAllowsHostedConnections(v bool) *Lag { s.AllowsHostedConnections = &v return s }
go
func (s *Lag) SetAllowsHostedConnections(v bool) *Lag { s.AllowsHostedConnections = &v return s }
[ "func", "(", "s", "*", "Lag", ")", "SetAllowsHostedConnections", "(", "v", "bool", ")", "*", "Lag", "{", "s", ".", "AllowsHostedConnections", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetAllowsHostedConnections sets the AllowsHostedConnections field's value.
[ "SetAllowsHostedConnections", "sets", "the", "AllowsHostedConnections", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/directconnect/api.go#L9012-L9015
2,612
aws/aws-sdk-go
service/directconnect/api.go
SetLagState
func (s *Lag) SetLagState(v string) *Lag { s.LagState = &v return s }
go
func (s *Lag) SetLagState(v string) *Lag { s.LagState = &v return s }
[ "func", "(", "s", "*", "Lag", ")", "SetLagState", "(", "v", "string", ")", "*", "Lag", "{", "s", ".", "LagState", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetLagState sets the LagState field's value.
[ "SetLagState", "sets", "the", "LagState", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/directconnect/api.go#L9066-L9069
2,613
aws/aws-sdk-go
service/directconnect/api.go
SetLoaContent
func (s *Loa) SetLoaContent(v []byte) *Loa { s.LoaContent = v return s }
go
func (s *Loa) SetLoaContent(v []byte) *Loa { s.LoaContent = v return s }
[ "func", "(", "s", "*", "Loa", ")", "SetLoaContent", "(", "v", "[", "]", "byte", ")", "*", "Loa", "{", "s", ".", "LoaContent", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetLoaContent sets the LoaContent field's value.
[ "SetLoaContent", "sets", "the", "LoaContent", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/directconnect/api.go#L9127-L9130
2,614
aws/aws-sdk-go
service/directconnect/api.go
SetAvailablePortSpeeds
func (s *Location) SetAvailablePortSpeeds(v []*string) *Location { s.AvailablePortSpeeds = v return s }
go
func (s *Location) SetAvailablePortSpeeds(v []*string) *Location { s.AvailablePortSpeeds = v return s }
[ "func", "(", "s", "*", "Location", ")", "SetAvailablePortSpeeds", "(", "v", "[", "]", "*", "string", ")", "*", "Location", "{", "s", ".", "AvailablePortSpeeds", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetAvailablePortSpeeds sets the AvailablePortSpeeds field's value.
[ "SetAvailablePortSpeeds", "sets", "the", "AvailablePortSpeeds", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/directconnect/api.go#L9167-L9170
2,615
aws/aws-sdk-go
service/directconnect/api.go
SetLocationCode
func (s *Location) SetLocationCode(v string) *Location { s.LocationCode = &v return s }
go
func (s *Location) SetLocationCode(v string) *Location { s.LocationCode = &v return s }
[ "func", "(", "s", "*", "Location", ")", "SetLocationCode", "(", "v", "string", ")", "*", "Location", "{", "s", ".", "LocationCode", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetLocationCode sets the LocationCode field's value.
[ "SetLocationCode", "sets", "the", "LocationCode", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/directconnect/api.go#L9173-L9176
2,616
aws/aws-sdk-go
service/directconnect/api.go
SetLocationName
func (s *Location) SetLocationName(v string) *Location { s.LocationName = &v return s }
go
func (s *Location) SetLocationName(v string) *Location { s.LocationName = &v return s }
[ "func", "(", "s", "*", "Location", ")", "SetLocationName", "(", "v", "string", ")", "*", "Location", "{", "s", ".", "LocationName", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetLocationName sets the LocationName field's value.
[ "SetLocationName", "sets", "the", "LocationName", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/directconnect/api.go#L9179-L9182
2,617
aws/aws-sdk-go
service/directconnect/api.go
SetVirtualGatewayState
func (s *VirtualGateway) SetVirtualGatewayState(v string) *VirtualGateway { s.VirtualGatewayState = &v return s }
go
func (s *VirtualGateway) SetVirtualGatewayState(v string) *VirtualGateway { s.VirtualGatewayState = &v return s }
[ "func", "(", "s", "*", "VirtualGateway", ")", "SetVirtualGatewayState", "(", "v", "string", ")", "*", "VirtualGateway", "{", "s", ".", "VirtualGatewayState", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetVirtualGatewayState sets the VirtualGatewayState field's value.
[ "SetVirtualGatewayState", "sets", "the", "VirtualGatewayState", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/directconnect/api.go#L10621-L10624
2,618
aws/aws-sdk-go
private/protocol/xml/xmlutil/xml_to_struct.go
NewXMLElement
func NewXMLElement(name xml.Name) *XMLNode { return &XMLNode{ Name: name, Children: map[string][]*XMLNode{}, Attr: []xml.Attr{}, } }
go
func NewXMLElement(name xml.Name) *XMLNode { return &XMLNode{ Name: name, Children: map[string][]*XMLNode{}, Attr: []xml.Attr{}, } }
[ "func", "NewXMLElement", "(", "name", "xml", ".", "Name", ")", "*", "XMLNode", "{", "return", "&", "XMLNode", "{", "Name", ":", "name", ",", "Children", ":", "map", "[", "string", "]", "[", "]", "*", "XMLNode", "{", "}", ",", "Attr", ":", "[", "]", "xml", ".", "Attr", "{", "}", ",", "}", "\n", "}" ]
// NewXMLElement returns a pointer to a new XMLNode initialized to default values.
[ "NewXMLElement", "returns", "a", "pointer", "to", "a", "new", "XMLNode", "initialized", "to", "default", "values", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/protocol/xml/xmlutil/xml_to_struct.go#L22-L28
2,619
aws/aws-sdk-go
private/protocol/xml/xmlutil/xml_to_struct.go
AddChild
func (n *XMLNode) AddChild(child *XMLNode) { child.parent = n if _, ok := n.Children[child.Name.Local]; !ok { n.Children[child.Name.Local] = []*XMLNode{} } n.Children[child.Name.Local] = append(n.Children[child.Name.Local], child) }
go
func (n *XMLNode) AddChild(child *XMLNode) { child.parent = n if _, ok := n.Children[child.Name.Local]; !ok { n.Children[child.Name.Local] = []*XMLNode{} } n.Children[child.Name.Local] = append(n.Children[child.Name.Local], child) }
[ "func", "(", "n", "*", "XMLNode", ")", "AddChild", "(", "child", "*", "XMLNode", ")", "{", "child", ".", "parent", "=", "n", "\n", "if", "_", ",", "ok", ":=", "n", ".", "Children", "[", "child", ".", "Name", ".", "Local", "]", ";", "!", "ok", "{", "n", ".", "Children", "[", "child", ".", "Name", ".", "Local", "]", "=", "[", "]", "*", "XMLNode", "{", "}", "\n", "}", "\n", "n", ".", "Children", "[", "child", ".", "Name", ".", "Local", "]", "=", "append", "(", "n", ".", "Children", "[", "child", ".", "Name", ".", "Local", "]", ",", "child", ")", "\n", "}" ]
// AddChild adds child to the XMLNode.
[ "AddChild", "adds", "child", "to", "the", "XMLNode", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/protocol/xml/xmlutil/xml_to_struct.go#L31-L37
2,620
aws/aws-sdk-go
private/protocol/xml/xmlutil/xml_to_struct.go
XMLToStruct
func XMLToStruct(d *xml.Decoder, s *xml.StartElement) (*XMLNode, error) { out := &XMLNode{} for { tok, err := d.Token() if err != nil { if err == io.EOF { break } else { return out, err } } if tok == nil { break } switch typed := tok.(type) { case xml.CharData: out.Text = string(typed.Copy()) case xml.StartElement: el := typed.Copy() out.Attr = el.Attr if out.Children == nil { out.Children = map[string][]*XMLNode{} } name := typed.Name.Local slice := out.Children[name] if slice == nil { slice = []*XMLNode{} } node, e := XMLToStruct(d, &el) out.findNamespaces() if e != nil { return out, e } node.Name = typed.Name node.findNamespaces() tempOut := *out // Save into a temp variable, simply because out gets squashed during // loop iterations node.parent = &tempOut slice = append(slice, node) out.Children[name] = slice case xml.EndElement: if s != nil && s.Name.Local == typed.Name.Local { // matching end token return out, nil } out = &XMLNode{} } } return out, nil }
go
func XMLToStruct(d *xml.Decoder, s *xml.StartElement) (*XMLNode, error) { out := &XMLNode{} for { tok, err := d.Token() if err != nil { if err == io.EOF { break } else { return out, err } } if tok == nil { break } switch typed := tok.(type) { case xml.CharData: out.Text = string(typed.Copy()) case xml.StartElement: el := typed.Copy() out.Attr = el.Attr if out.Children == nil { out.Children = map[string][]*XMLNode{} } name := typed.Name.Local slice := out.Children[name] if slice == nil { slice = []*XMLNode{} } node, e := XMLToStruct(d, &el) out.findNamespaces() if e != nil { return out, e } node.Name = typed.Name node.findNamespaces() tempOut := *out // Save into a temp variable, simply because out gets squashed during // loop iterations node.parent = &tempOut slice = append(slice, node) out.Children[name] = slice case xml.EndElement: if s != nil && s.Name.Local == typed.Name.Local { // matching end token return out, nil } out = &XMLNode{} } } return out, nil }
[ "func", "XMLToStruct", "(", "d", "*", "xml", ".", "Decoder", ",", "s", "*", "xml", ".", "StartElement", ")", "(", "*", "XMLNode", ",", "error", ")", "{", "out", ":=", "&", "XMLNode", "{", "}", "\n", "for", "{", "tok", ",", "err", ":=", "d", ".", "Token", "(", ")", "\n", "if", "err", "!=", "nil", "{", "if", "err", "==", "io", ".", "EOF", "{", "break", "\n", "}", "else", "{", "return", "out", ",", "err", "\n", "}", "\n", "}", "\n\n", "if", "tok", "==", "nil", "{", "break", "\n", "}", "\n\n", "switch", "typed", ":=", "tok", ".", "(", "type", ")", "{", "case", "xml", ".", "CharData", ":", "out", ".", "Text", "=", "string", "(", "typed", ".", "Copy", "(", ")", ")", "\n", "case", "xml", ".", "StartElement", ":", "el", ":=", "typed", ".", "Copy", "(", ")", "\n", "out", ".", "Attr", "=", "el", ".", "Attr", "\n", "if", "out", ".", "Children", "==", "nil", "{", "out", ".", "Children", "=", "map", "[", "string", "]", "[", "]", "*", "XMLNode", "{", "}", "\n", "}", "\n\n", "name", ":=", "typed", ".", "Name", ".", "Local", "\n", "slice", ":=", "out", ".", "Children", "[", "name", "]", "\n", "if", "slice", "==", "nil", "{", "slice", "=", "[", "]", "*", "XMLNode", "{", "}", "\n", "}", "\n", "node", ",", "e", ":=", "XMLToStruct", "(", "d", ",", "&", "el", ")", "\n", "out", ".", "findNamespaces", "(", ")", "\n", "if", "e", "!=", "nil", "{", "return", "out", ",", "e", "\n", "}", "\n", "node", ".", "Name", "=", "typed", ".", "Name", "\n", "node", ".", "findNamespaces", "(", ")", "\n", "tempOut", ":=", "*", "out", "\n", "// Save into a temp variable, simply because out gets squashed during", "// loop iterations", "node", ".", "parent", "=", "&", "tempOut", "\n", "slice", "=", "append", "(", "slice", ",", "node", ")", "\n", "out", ".", "Children", "[", "name", "]", "=", "slice", "\n", "case", "xml", ".", "EndElement", ":", "if", "s", "!=", "nil", "&&", "s", ".", "Name", ".", "Local", "==", "typed", ".", "Name", ".", "Local", "{", "// matching end token", "return", "out", ",", "nil", "\n", "}", "\n", "out", "=", "&", "XMLNode", "{", "}", "\n", "}", "\n", "}", "\n", "return", "out", ",", "nil", "\n", "}" ]
// XMLToStruct converts a xml.Decoder stream to XMLNode with nested values.
[ "XMLToStruct", "converts", "a", "xml", ".", "Decoder", "stream", "to", "XMLNode", "with", "nested", "values", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/protocol/xml/xmlutil/xml_to_struct.go#L40-L92
2,621
aws/aws-sdk-go
private/protocol/xml/xmlutil/xml_to_struct.go
StructToXML
func StructToXML(e *xml.Encoder, node *XMLNode, sorted bool) error { e.EncodeToken(xml.StartElement{Name: node.Name, Attr: node.Attr}) if node.Text != "" { e.EncodeToken(xml.CharData([]byte(node.Text))) } else if sorted { sortedNames := []string{} for k := range node.Children { sortedNames = append(sortedNames, k) } sort.Strings(sortedNames) for _, k := range sortedNames { for _, v := range node.Children[k] { StructToXML(e, v, sorted) } } } else { for _, c := range node.Children { for _, v := range c { StructToXML(e, v, sorted) } } } e.EncodeToken(xml.EndElement{Name: node.Name}) return e.Flush() }
go
func StructToXML(e *xml.Encoder, node *XMLNode, sorted bool) error { e.EncodeToken(xml.StartElement{Name: node.Name, Attr: node.Attr}) if node.Text != "" { e.EncodeToken(xml.CharData([]byte(node.Text))) } else if sorted { sortedNames := []string{} for k := range node.Children { sortedNames = append(sortedNames, k) } sort.Strings(sortedNames) for _, k := range sortedNames { for _, v := range node.Children[k] { StructToXML(e, v, sorted) } } } else { for _, c := range node.Children { for _, v := range c { StructToXML(e, v, sorted) } } } e.EncodeToken(xml.EndElement{Name: node.Name}) return e.Flush() }
[ "func", "StructToXML", "(", "e", "*", "xml", ".", "Encoder", ",", "node", "*", "XMLNode", ",", "sorted", "bool", ")", "error", "{", "e", ".", "EncodeToken", "(", "xml", ".", "StartElement", "{", "Name", ":", "node", ".", "Name", ",", "Attr", ":", "node", ".", "Attr", "}", ")", "\n\n", "if", "node", ".", "Text", "!=", "\"", "\"", "{", "e", ".", "EncodeToken", "(", "xml", ".", "CharData", "(", "[", "]", "byte", "(", "node", ".", "Text", ")", ")", ")", "\n", "}", "else", "if", "sorted", "{", "sortedNames", ":=", "[", "]", "string", "{", "}", "\n", "for", "k", ":=", "range", "node", ".", "Children", "{", "sortedNames", "=", "append", "(", "sortedNames", ",", "k", ")", "\n", "}", "\n", "sort", ".", "Strings", "(", "sortedNames", ")", "\n\n", "for", "_", ",", "k", ":=", "range", "sortedNames", "{", "for", "_", ",", "v", ":=", "range", "node", ".", "Children", "[", "k", "]", "{", "StructToXML", "(", "e", ",", "v", ",", "sorted", ")", "\n", "}", "\n", "}", "\n", "}", "else", "{", "for", "_", ",", "c", ":=", "range", "node", ".", "Children", "{", "for", "_", ",", "v", ":=", "range", "c", "{", "StructToXML", "(", "e", ",", "v", ",", "sorted", ")", "\n", "}", "\n", "}", "\n", "}", "\n\n", "e", ".", "EncodeToken", "(", "xml", ".", "EndElement", "{", "Name", ":", "node", ".", "Name", "}", ")", "\n", "return", "e", ".", "Flush", "(", ")", "\n", "}" ]
// StructToXML writes an XMLNode to a xml.Encoder as tokens.
[ "StructToXML", "writes", "an", "XMLNode", "to", "a", "xml", ".", "Encoder", "as", "tokens", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/private/protocol/xml/xmlutil/xml_to_struct.go#L121-L148
2,622
aws/aws-sdk-go
service/chime/api.go
SetAccountType
func (s *Account) SetAccountType(v string) *Account { s.AccountType = &v return s }
go
func (s *Account) SetAccountType(v string) *Account { s.AccountType = &v return s }
[ "func", "(", "s", "*", "Account", ")", "SetAccountType", "(", "v", "string", ")", "*", "Account", "{", "s", ".", "AccountType", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetAccountType sets the AccountType field's value.
[ "SetAccountType", "sets", "the", "AccountType", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/chime/api.go#L5336-L5339
2,623
aws/aws-sdk-go
service/chime/api.go
SetDefaultLicense
func (s *Account) SetDefaultLicense(v string) *Account { s.DefaultLicense = &v return s }
go
func (s *Account) SetDefaultLicense(v string) *Account { s.DefaultLicense = &v return s }
[ "func", "(", "s", "*", "Account", ")", "SetDefaultLicense", "(", "v", "string", ")", "*", "Account", "{", "s", ".", "DefaultLicense", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetDefaultLicense sets the DefaultLicense field's value.
[ "SetDefaultLicense", "sets", "the", "DefaultLicense", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/chime/api.go#L5354-L5357
2,624
aws/aws-sdk-go
service/chime/api.go
SetSupportedLicenses
func (s *Account) SetSupportedLicenses(v []*string) *Account { s.SupportedLicenses = v return s }
go
func (s *Account) SetSupportedLicenses(v []*string) *Account { s.SupportedLicenses = v return s }
[ "func", "(", "s", "*", "Account", ")", "SetSupportedLicenses", "(", "v", "[", "]", "*", "string", ")", "*", "Account", "{", "s", ".", "SupportedLicenses", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetSupportedLicenses sets the SupportedLicenses field's value.
[ "SetSupportedLicenses", "sets", "the", "SupportedLicenses", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/chime/api.go#L5366-L5369
2,625
aws/aws-sdk-go
service/chime/api.go
SetDisableRemoteControl
func (s *AccountSettings) SetDisableRemoteControl(v bool) *AccountSettings { s.DisableRemoteControl = &v return s }
go
func (s *AccountSettings) SetDisableRemoteControl(v bool) *AccountSettings { s.DisableRemoteControl = &v return s }
[ "func", "(", "s", "*", "AccountSettings", ")", "SetDisableRemoteControl", "(", "v", "bool", ")", "*", "AccountSettings", "{", "s", ".", "DisableRemoteControl", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetDisableRemoteControl sets the DisableRemoteControl field's value.
[ "SetDisableRemoteControl", "sets", "the", "DisableRemoteControl", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/chime/api.go#L5399-L5402
2,626
aws/aws-sdk-go
service/chime/api.go
SetEnableDialOut
func (s *AccountSettings) SetEnableDialOut(v bool) *AccountSettings { s.EnableDialOut = &v return s }
go
func (s *AccountSettings) SetEnableDialOut(v bool) *AccountSettings { s.EnableDialOut = &v return s }
[ "func", "(", "s", "*", "AccountSettings", ")", "SetEnableDialOut", "(", "v", "bool", ")", "*", "AccountSettings", "{", "s", ".", "EnableDialOut", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetEnableDialOut sets the EnableDialOut field's value.
[ "SetEnableDialOut", "sets", "the", "EnableDialOut", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/chime/api.go#L5405-L5408
2,627
aws/aws-sdk-go
service/chime/api.go
SetPhoneNumberIds
func (s *BatchDeletePhoneNumberInput) SetPhoneNumberIds(v []*string) *BatchDeletePhoneNumberInput { s.PhoneNumberIds = v return s }
go
func (s *BatchDeletePhoneNumberInput) SetPhoneNumberIds(v []*string) *BatchDeletePhoneNumberInput { s.PhoneNumberIds = v return s }
[ "func", "(", "s", "*", "BatchDeletePhoneNumberInput", ")", "SetPhoneNumberIds", "(", "v", "[", "]", "*", "string", ")", "*", "BatchDeletePhoneNumberInput", "{", "s", ".", "PhoneNumberIds", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetPhoneNumberIds sets the PhoneNumberIds field's value.
[ "SetPhoneNumberIds", "sets", "the", "PhoneNumberIds", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/chime/api.go#L5607-L5610
2,628
aws/aws-sdk-go
service/chime/api.go
SetUpdatePhoneNumberRequestItems
func (s *BatchUpdatePhoneNumberInput) SetUpdatePhoneNumberRequestItems(v []*UpdatePhoneNumberRequestItem) *BatchUpdatePhoneNumberInput { s.UpdatePhoneNumberRequestItems = v return s }
go
func (s *BatchUpdatePhoneNumberInput) SetUpdatePhoneNumberRequestItems(v []*UpdatePhoneNumberRequestItem) *BatchUpdatePhoneNumberInput { s.UpdatePhoneNumberRequestItems = v return s }
[ "func", "(", "s", "*", "BatchUpdatePhoneNumberInput", ")", "SetUpdatePhoneNumberRequestItems", "(", "v", "[", "]", "*", "UpdatePhoneNumberRequestItem", ")", "*", "BatchUpdatePhoneNumberInput", "{", "s", ".", "UpdatePhoneNumberRequestItems", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetUpdatePhoneNumberRequestItems sets the UpdatePhoneNumberRequestItems field's value.
[ "SetUpdatePhoneNumberRequestItems", "sets", "the", "UpdatePhoneNumberRequestItems", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/chime/api.go#L5840-L5843
2,629
aws/aws-sdk-go
service/chime/api.go
SetUpdateUserRequestItems
func (s *BatchUpdateUserInput) SetUpdateUserRequestItems(v []*UpdateUserRequestItem) *BatchUpdateUserInput { s.UpdateUserRequestItems = v return s }
go
func (s *BatchUpdateUserInput) SetUpdateUserRequestItems(v []*UpdateUserRequestItem) *BatchUpdateUserInput { s.UpdateUserRequestItems = v return s }
[ "func", "(", "s", "*", "BatchUpdateUserInput", ")", "SetUpdateUserRequestItems", "(", "v", "[", "]", "*", "UpdateUserRequestItem", ")", "*", "BatchUpdateUserInput", "{", "s", ".", "UpdateUserRequestItems", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetUpdateUserRequestItems sets the UpdateUserRequestItems field's value.
[ "SetUpdateUserRequestItems", "sets", "the", "UpdateUserRequestItems", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/chime/api.go#L5930-L5933
2,630
aws/aws-sdk-go
service/chime/api.go
SetTerminationHealth
func (s *GetVoiceConnectorTerminationHealthOutput) SetTerminationHealth(v *TerminationHealth) *GetVoiceConnectorTerminationHealthOutput { s.TerminationHealth = v return s }
go
func (s *GetVoiceConnectorTerminationHealthOutput) SetTerminationHealth(v *TerminationHealth) *GetVoiceConnectorTerminationHealthOutput { s.TerminationHealth = v return s }
[ "func", "(", "s", "*", "GetVoiceConnectorTerminationHealthOutput", ")", "SetTerminationHealth", "(", "v", "*", "TerminationHealth", ")", "*", "GetVoiceConnectorTerminationHealthOutput", "{", "s", ".", "TerminationHealth", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetTerminationHealth sets the TerminationHealth field's value.
[ "SetTerminationHealth", "sets", "the", "TerminationHealth", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/chime/api.go#L7376-L7379
2,631
aws/aws-sdk-go
service/chime/api.go
SetEmailStatus
func (s *Invite) SetEmailStatus(v string) *Invite { s.EmailStatus = &v return s }
go
func (s *Invite) SetEmailStatus(v string) *Invite { s.EmailStatus = &v return s }
[ "func", "(", "s", "*", "Invite", ")", "SetEmailStatus", "(", "v", "string", ")", "*", "Invite", "{", "s", ".", "EmailStatus", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetEmailStatus sets the EmailStatus field's value.
[ "SetEmailStatus", "sets", "the", "EmailStatus", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/chime/api.go#L7480-L7483
2,632
aws/aws-sdk-go
service/chime/api.go
SetInviteId
func (s *Invite) SetInviteId(v string) *Invite { s.InviteId = &v return s }
go
func (s *Invite) SetInviteId(v string) *Invite { s.InviteId = &v return s }
[ "func", "(", "s", "*", "Invite", ")", "SetInviteId", "(", "v", "string", ")", "*", "Invite", "{", "s", ".", "InviteId", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetInviteId sets the InviteId field's value.
[ "SetInviteId", "sets", "the", "InviteId", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/chime/api.go#L7486-L7489
2,633
aws/aws-sdk-go
service/chime/api.go
SetUserEmailList
func (s *InviteUsersInput) SetUserEmailList(v []*string) *InviteUsersInput { s.UserEmailList = v return s }
go
func (s *InviteUsersInput) SetUserEmailList(v []*string) *InviteUsersInput { s.UserEmailList = v return s }
[ "func", "(", "s", "*", "InviteUsersInput", ")", "SetUserEmailList", "(", "v", "[", "]", "*", "string", ")", "*", "InviteUsersInput", "{", "s", ".", "UserEmailList", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetUserEmailList sets the UserEmailList field's value.
[ "SetUserEmailList", "sets", "the", "UserEmailList", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/chime/api.go#L7547-L7550
2,634
aws/aws-sdk-go
service/chime/api.go
SetInvites
func (s *InviteUsersOutput) SetInvites(v []*Invite) *InviteUsersOutput { s.Invites = v return s }
go
func (s *InviteUsersOutput) SetInvites(v []*Invite) *InviteUsersOutput { s.Invites = v return s }
[ "func", "(", "s", "*", "InviteUsersOutput", ")", "SetInvites", "(", "v", "[", "]", "*", "Invite", ")", "*", "InviteUsersOutput", "{", "s", ".", "Invites", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetInvites sets the Invites field's value.
[ "SetInvites", "sets", "the", "Invites", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/chime/api.go#L7570-L7573
2,635
aws/aws-sdk-go
service/chime/api.go
SetPhoneNumberOrders
func (s *ListPhoneNumberOrdersOutput) SetPhoneNumberOrders(v []*PhoneNumberOrder) *ListPhoneNumberOrdersOutput { s.PhoneNumberOrders = v return s }
go
func (s *ListPhoneNumberOrdersOutput) SetPhoneNumberOrders(v []*PhoneNumberOrder) *ListPhoneNumberOrdersOutput { s.PhoneNumberOrders = v return s }
[ "func", "(", "s", "*", "ListPhoneNumberOrdersOutput", ")", "SetPhoneNumberOrders", "(", "v", "[", "]", "*", "PhoneNumberOrder", ")", "*", "ListPhoneNumberOrdersOutput", "{", "s", ".", "PhoneNumberOrders", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetPhoneNumberOrders sets the PhoneNumberOrders field's value.
[ "SetPhoneNumberOrders", "sets", "the", "PhoneNumberOrders", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/chime/api.go#L7745-L7748
2,636
aws/aws-sdk-go
service/chime/api.go
SetFilterValue
func (s *ListPhoneNumbersInput) SetFilterValue(v string) *ListPhoneNumbersInput { s.FilterValue = &v return s }
go
func (s *ListPhoneNumbersInput) SetFilterValue(v string) *ListPhoneNumbersInput { s.FilterValue = &v return s }
[ "func", "(", "s", "*", "ListPhoneNumbersInput", ")", "SetFilterValue", "(", "v", "string", ")", "*", "ListPhoneNumbersInput", "{", "s", ".", "FilterValue", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetFilterValue sets the FilterValue field's value.
[ "SetFilterValue", "sets", "the", "FilterValue", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/chime/api.go#L7802-L7805
2,637
aws/aws-sdk-go
service/chime/api.go
SetVoiceConnectors
func (s *ListVoiceConnectorsOutput) SetVoiceConnectors(v []*VoiceConnector) *ListVoiceConnectorsOutput { s.VoiceConnectors = v return s }
go
func (s *ListVoiceConnectorsOutput) SetVoiceConnectors(v []*VoiceConnector) *ListVoiceConnectorsOutput { s.VoiceConnectors = v return s }
[ "func", "(", "s", "*", "ListVoiceConnectorsOutput", ")", "SetVoiceConnectors", "(", "v", "[", "]", "*", "VoiceConnector", ")", "*", "ListVoiceConnectorsOutput", "{", "s", ".", "VoiceConnectors", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetVoiceConnectors sets the VoiceConnectors field's value.
[ "SetVoiceConnectors", "sets", "the", "VoiceConnectors", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/chime/api.go#L8102-L8105
2,638
aws/aws-sdk-go
service/chime/api.go
SetDeletionTimestamp
func (s *PhoneNumber) SetDeletionTimestamp(v time.Time) *PhoneNumber { s.DeletionTimestamp = &v return s }
go
func (s *PhoneNumber) SetDeletionTimestamp(v time.Time) *PhoneNumber { s.DeletionTimestamp = &v return s }
[ "func", "(", "s", "*", "PhoneNumber", ")", "SetDeletionTimestamp", "(", "v", "time", ".", "Time", ")", "*", "PhoneNumber", "{", "s", ".", "DeletionTimestamp", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetDeletionTimestamp sets the DeletionTimestamp field's value.
[ "SetDeletionTimestamp", "sets", "the", "DeletionTimestamp", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/chime/api.go#L8411-L8414
2,639
aws/aws-sdk-go
service/chime/api.go
SetAssociatedTimestamp
func (s *PhoneNumberAssociation) SetAssociatedTimestamp(v time.Time) *PhoneNumberAssociation { s.AssociatedTimestamp = &v return s }
go
func (s *PhoneNumberAssociation) SetAssociatedTimestamp(v time.Time) *PhoneNumberAssociation { s.AssociatedTimestamp = &v return s }
[ "func", "(", "s", "*", "PhoneNumberAssociation", ")", "SetAssociatedTimestamp", "(", "v", "time", ".", "Time", ")", "*", "PhoneNumberAssociation", "{", "s", ".", "AssociatedTimestamp", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetAssociatedTimestamp sets the AssociatedTimestamp field's value.
[ "SetAssociatedTimestamp", "sets", "the", "AssociatedTimestamp", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/chime/api.go#L8473-L8476
2,640
aws/aws-sdk-go
service/chime/api.go
SetInboundCall
func (s *PhoneNumberCapabilities) SetInboundCall(v bool) *PhoneNumberCapabilities { s.InboundCall = &v return s }
go
func (s *PhoneNumberCapabilities) SetInboundCall(v bool) *PhoneNumberCapabilities { s.InboundCall = &v return s }
[ "func", "(", "s", "*", "PhoneNumberCapabilities", ")", "SetInboundCall", "(", "v", "bool", ")", "*", "PhoneNumberCapabilities", "{", "s", ".", "InboundCall", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetInboundCall sets the InboundCall field's value.
[ "SetInboundCall", "sets", "the", "InboundCall", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/chime/api.go#L8525-L8528
2,641
aws/aws-sdk-go
service/chime/api.go
SetInboundMMS
func (s *PhoneNumberCapabilities) SetInboundMMS(v bool) *PhoneNumberCapabilities { s.InboundMMS = &v return s }
go
func (s *PhoneNumberCapabilities) SetInboundMMS(v bool) *PhoneNumberCapabilities { s.InboundMMS = &v return s }
[ "func", "(", "s", "*", "PhoneNumberCapabilities", ")", "SetInboundMMS", "(", "v", "bool", ")", "*", "PhoneNumberCapabilities", "{", "s", ".", "InboundMMS", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetInboundMMS sets the InboundMMS field's value.
[ "SetInboundMMS", "sets", "the", "InboundMMS", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/chime/api.go#L8531-L8534
2,642
aws/aws-sdk-go
service/chime/api.go
SetInboundSMS
func (s *PhoneNumberCapabilities) SetInboundSMS(v bool) *PhoneNumberCapabilities { s.InboundSMS = &v return s }
go
func (s *PhoneNumberCapabilities) SetInboundSMS(v bool) *PhoneNumberCapabilities { s.InboundSMS = &v return s }
[ "func", "(", "s", "*", "PhoneNumberCapabilities", ")", "SetInboundSMS", "(", "v", "bool", ")", "*", "PhoneNumberCapabilities", "{", "s", ".", "InboundSMS", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetInboundSMS sets the InboundSMS field's value.
[ "SetInboundSMS", "sets", "the", "InboundSMS", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/chime/api.go#L8537-L8540
2,643
aws/aws-sdk-go
service/chime/api.go
SetOutboundCall
func (s *PhoneNumberCapabilities) SetOutboundCall(v bool) *PhoneNumberCapabilities { s.OutboundCall = &v return s }
go
func (s *PhoneNumberCapabilities) SetOutboundCall(v bool) *PhoneNumberCapabilities { s.OutboundCall = &v return s }
[ "func", "(", "s", "*", "PhoneNumberCapabilities", ")", "SetOutboundCall", "(", "v", "bool", ")", "*", "PhoneNumberCapabilities", "{", "s", ".", "OutboundCall", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetOutboundCall sets the OutboundCall field's value.
[ "SetOutboundCall", "sets", "the", "OutboundCall", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/chime/api.go#L8543-L8546
2,644
aws/aws-sdk-go
service/chime/api.go
SetOutboundMMS
func (s *PhoneNumberCapabilities) SetOutboundMMS(v bool) *PhoneNumberCapabilities { s.OutboundMMS = &v return s }
go
func (s *PhoneNumberCapabilities) SetOutboundMMS(v bool) *PhoneNumberCapabilities { s.OutboundMMS = &v return s }
[ "func", "(", "s", "*", "PhoneNumberCapabilities", ")", "SetOutboundMMS", "(", "v", "bool", ")", "*", "PhoneNumberCapabilities", "{", "s", ".", "OutboundMMS", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetOutboundMMS sets the OutboundMMS field's value.
[ "SetOutboundMMS", "sets", "the", "OutboundMMS", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/chime/api.go#L8549-L8552
2,645
aws/aws-sdk-go
service/chime/api.go
SetOutboundSMS
func (s *PhoneNumberCapabilities) SetOutboundSMS(v bool) *PhoneNumberCapabilities { s.OutboundSMS = &v return s }
go
func (s *PhoneNumberCapabilities) SetOutboundSMS(v bool) *PhoneNumberCapabilities { s.OutboundSMS = &v return s }
[ "func", "(", "s", "*", "PhoneNumberCapabilities", ")", "SetOutboundSMS", "(", "v", "bool", ")", "*", "PhoneNumberCapabilities", "{", "s", ".", "OutboundSMS", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetOutboundSMS sets the OutboundSMS field's value.
[ "SetOutboundSMS", "sets", "the", "OutboundSMS", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/chime/api.go#L8555-L8558
2,646
aws/aws-sdk-go
service/chime/api.go
SetOrderedPhoneNumbers
func (s *PhoneNumberOrder) SetOrderedPhoneNumbers(v []*OrderedPhoneNumber) *PhoneNumberOrder { s.OrderedPhoneNumbers = v return s }
go
func (s *PhoneNumberOrder) SetOrderedPhoneNumbers(v []*OrderedPhoneNumber) *PhoneNumberOrder { s.OrderedPhoneNumbers = v return s }
[ "func", "(", "s", "*", "PhoneNumberOrder", ")", "SetOrderedPhoneNumbers", "(", "v", "[", "]", "*", "OrderedPhoneNumber", ")", "*", "PhoneNumberOrder", "{", "s", ".", "OrderedPhoneNumbers", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetOrderedPhoneNumbers sets the OrderedPhoneNumbers field's value.
[ "SetOrderedPhoneNumbers", "sets", "the", "OrderedPhoneNumbers", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/chime/api.go#L8645-L8648
2,647
aws/aws-sdk-go
service/chime/api.go
SetAreaCode
func (s *SearchAvailablePhoneNumbersInput) SetAreaCode(v string) *SearchAvailablePhoneNumbersInput { s.AreaCode = &v return s }
go
func (s *SearchAvailablePhoneNumbersInput) SetAreaCode(v string) *SearchAvailablePhoneNumbersInput { s.AreaCode = &v return s }
[ "func", "(", "s", "*", "SearchAvailablePhoneNumbersInput", ")", "SetAreaCode", "(", "v", "string", ")", "*", "SearchAvailablePhoneNumbersInput", "{", "s", ".", "AreaCode", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetAreaCode sets the AreaCode field's value.
[ "SetAreaCode", "sets", "the", "AreaCode", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/chime/api.go#L9095-L9098
2,648
aws/aws-sdk-go
service/chime/api.go
SetInboundCalling
func (s *TelephonySettings) SetInboundCalling(v bool) *TelephonySettings { s.InboundCalling = &v return s }
go
func (s *TelephonySettings) SetInboundCalling(v bool) *TelephonySettings { s.InboundCalling = &v return s }
[ "func", "(", "s", "*", "TelephonySettings", ")", "SetInboundCalling", "(", "v", "bool", ")", "*", "TelephonySettings", "{", "s", ".", "InboundCalling", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetInboundCalling sets the InboundCalling field's value.
[ "SetInboundCalling", "sets", "the", "InboundCalling", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/chime/api.go#L9204-L9207
2,649
aws/aws-sdk-go
service/chime/api.go
SetOutboundCalling
func (s *TelephonySettings) SetOutboundCalling(v bool) *TelephonySettings { s.OutboundCalling = &v return s }
go
func (s *TelephonySettings) SetOutboundCalling(v bool) *TelephonySettings { s.OutboundCalling = &v return s }
[ "func", "(", "s", "*", "TelephonySettings", ")", "SetOutboundCalling", "(", "v", "bool", ")", "*", "TelephonySettings", "{", "s", ".", "OutboundCalling", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetOutboundCalling sets the OutboundCalling field's value.
[ "SetOutboundCalling", "sets", "the", "OutboundCalling", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/chime/api.go#L9210-L9213
2,650
aws/aws-sdk-go
service/chime/api.go
SetSMS
func (s *TelephonySettings) SetSMS(v bool) *TelephonySettings { s.SMS = &v return s }
go
func (s *TelephonySettings) SetSMS(v bool) *TelephonySettings { s.SMS = &v return s }
[ "func", "(", "s", "*", "TelephonySettings", ")", "SetSMS", "(", "v", "bool", ")", "*", "TelephonySettings", "{", "s", ".", "SMS", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetSMS sets the SMS field's value.
[ "SetSMS", "sets", "the", "SMS", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/chime/api.go#L9216-L9219
2,651
aws/aws-sdk-go
service/chime/api.go
SetCallingRegions
func (s *Termination) SetCallingRegions(v []*string) *Termination { s.CallingRegions = v return s }
go
func (s *Termination) SetCallingRegions(v []*string) *Termination { s.CallingRegions = v return s }
[ "func", "(", "s", "*", "Termination", ")", "SetCallingRegions", "(", "v", "[", "]", "*", "string", ")", "*", "Termination", "{", "s", ".", "CallingRegions", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetCallingRegions sets the CallingRegions field's value.
[ "SetCallingRegions", "sets", "the", "CallingRegions", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/chime/api.go#L9267-L9270
2,652
aws/aws-sdk-go
service/chime/api.go
SetCidrAllowedList
func (s *Termination) SetCidrAllowedList(v []*string) *Termination { s.CidrAllowedList = v return s }
go
func (s *Termination) SetCidrAllowedList(v []*string) *Termination { s.CidrAllowedList = v return s }
[ "func", "(", "s", "*", "Termination", ")", "SetCidrAllowedList", "(", "v", "[", "]", "*", "string", ")", "*", "Termination", "{", "s", ".", "CidrAllowedList", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetCidrAllowedList sets the CidrAllowedList field's value.
[ "SetCidrAllowedList", "sets", "the", "CidrAllowedList", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/chime/api.go#L9273-L9276
2,653
aws/aws-sdk-go
service/chime/api.go
SetCpsLimit
func (s *Termination) SetCpsLimit(v int64) *Termination { s.CpsLimit = &v return s }
go
func (s *Termination) SetCpsLimit(v int64) *Termination { s.CpsLimit = &v return s }
[ "func", "(", "s", "*", "Termination", ")", "SetCpsLimit", "(", "v", "int64", ")", "*", "Termination", "{", "s", ".", "CpsLimit", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetCpsLimit sets the CpsLimit field's value.
[ "SetCpsLimit", "sets", "the", "CpsLimit", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/chime/api.go#L9279-L9282
2,654
aws/aws-sdk-go
service/chime/api.go
SetDefaultPhoneNumber
func (s *Termination) SetDefaultPhoneNumber(v string) *Termination { s.DefaultPhoneNumber = &v return s }
go
func (s *Termination) SetDefaultPhoneNumber(v string) *Termination { s.DefaultPhoneNumber = &v return s }
[ "func", "(", "s", "*", "Termination", ")", "SetDefaultPhoneNumber", "(", "v", "string", ")", "*", "Termination", "{", "s", ".", "DefaultPhoneNumber", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetDefaultPhoneNumber sets the DefaultPhoneNumber field's value.
[ "SetDefaultPhoneNumber", "sets", "the", "DefaultPhoneNumber", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/chime/api.go#L9285-L9288
2,655
aws/aws-sdk-go
service/chime/api.go
SetInvitedOn
func (s *User) SetInvitedOn(v time.Time) *User { s.InvitedOn = &v return s }
go
func (s *User) SetInvitedOn(v time.Time) *User { s.InvitedOn = &v return s }
[ "func", "(", "s", "*", "User", ")", "SetInvitedOn", "(", "v", "time", ".", "Time", ")", "*", "User", "{", "s", ".", "InvitedOn", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetInvitedOn sets the InvitedOn field's value.
[ "SetInvitedOn", "sets", "the", "InvitedOn", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/chime/api.go#L10052-L10055
2,656
aws/aws-sdk-go
service/chime/api.go
SetPersonalPIN
func (s *User) SetPersonalPIN(v string) *User { s.PersonalPIN = &v return s }
go
func (s *User) SetPersonalPIN(v string) *User { s.PersonalPIN = &v return s }
[ "func", "(", "s", "*", "User", ")", "SetPersonalPIN", "(", "v", "string", ")", "*", "User", "{", "s", ".", "PersonalPIN", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetPersonalPIN sets the PersonalPIN field's value.
[ "SetPersonalPIN", "sets", "the", "PersonalPIN", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/chime/api.go#L10064-L10067
2,657
aws/aws-sdk-go
service/chime/api.go
SetPrimaryEmail
func (s *User) SetPrimaryEmail(v string) *User { s.PrimaryEmail = &v return s }
go
func (s *User) SetPrimaryEmail(v string) *User { s.PrimaryEmail = &v return s }
[ "func", "(", "s", "*", "User", ")", "SetPrimaryEmail", "(", "v", "string", ")", "*", "User", "{", "s", ".", "PrimaryEmail", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetPrimaryEmail sets the PrimaryEmail field's value.
[ "SetPrimaryEmail", "sets", "the", "PrimaryEmail", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/chime/api.go#L10070-L10073
2,658
aws/aws-sdk-go
service/chime/api.go
SetPrimaryProvisionedNumber
func (s *User) SetPrimaryProvisionedNumber(v string) *User { s.PrimaryProvisionedNumber = &v return s }
go
func (s *User) SetPrimaryProvisionedNumber(v string) *User { s.PrimaryProvisionedNumber = &v return s }
[ "func", "(", "s", "*", "User", ")", "SetPrimaryProvisionedNumber", "(", "v", "string", ")", "*", "User", "{", "s", ".", "PrimaryProvisionedNumber", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetPrimaryProvisionedNumber sets the PrimaryProvisionedNumber field's value.
[ "SetPrimaryProvisionedNumber", "sets", "the", "PrimaryProvisionedNumber", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/chime/api.go#L10076-L10079
2,659
aws/aws-sdk-go
service/chime/api.go
SetRegisteredOn
func (s *User) SetRegisteredOn(v time.Time) *User { s.RegisteredOn = &v return s }
go
func (s *User) SetRegisteredOn(v time.Time) *User { s.RegisteredOn = &v return s }
[ "func", "(", "s", "*", "User", ")", "SetRegisteredOn", "(", "v", "time", ".", "Time", ")", "*", "User", "{", "s", ".", "RegisteredOn", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetRegisteredOn sets the RegisteredOn field's value.
[ "SetRegisteredOn", "sets", "the", "RegisteredOn", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/chime/api.go#L10082-L10085
2,660
aws/aws-sdk-go
service/chime/api.go
SetUserInvitationStatus
func (s *User) SetUserInvitationStatus(v string) *User { s.UserInvitationStatus = &v return s }
go
func (s *User) SetUserInvitationStatus(v string) *User { s.UserInvitationStatus = &v return s }
[ "func", "(", "s", "*", "User", ")", "SetUserInvitationStatus", "(", "v", "string", ")", "*", "User", "{", "s", ".", "UserInvitationStatus", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetUserInvitationStatus sets the UserInvitationStatus field's value.
[ "SetUserInvitationStatus", "sets", "the", "UserInvitationStatus", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/chime/api.go#L10094-L10097
2,661
aws/aws-sdk-go
service/chime/api.go
SetUserRegistrationStatus
func (s *User) SetUserRegistrationStatus(v string) *User { s.UserRegistrationStatus = &v return s }
go
func (s *User) SetUserRegistrationStatus(v string) *User { s.UserRegistrationStatus = &v return s }
[ "func", "(", "s", "*", "User", ")", "SetUserRegistrationStatus", "(", "v", "string", ")", "*", "User", "{", "s", ".", "UserRegistrationStatus", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetUserRegistrationStatus sets the UserRegistrationStatus field's value.
[ "SetUserRegistrationStatus", "sets", "the", "UserRegistrationStatus", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/chime/api.go#L10100-L10103
2,662
aws/aws-sdk-go
service/chime/api.go
SetTelephony
func (s *UserSettings) SetTelephony(v *TelephonySettings) *UserSettings { s.Telephony = v return s }
go
func (s *UserSettings) SetTelephony(v *TelephonySettings) *UserSettings { s.Telephony = v return s }
[ "func", "(", "s", "*", "UserSettings", ")", "SetTelephony", "(", "v", "*", "TelephonySettings", ")", "*", "UserSettings", "{", "s", ".", "Telephony", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetTelephony sets the Telephony field's value.
[ "SetTelephony", "sets", "the", "Telephony", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/chime/api.go#L10189-L10192
2,663
aws/aws-sdk-go
service/chime/api.go
SetOutboundHostName
func (s *VoiceConnector) SetOutboundHostName(v string) *VoiceConnector { s.OutboundHostName = &v return s }
go
func (s *VoiceConnector) SetOutboundHostName(v string) *VoiceConnector { s.OutboundHostName = &v return s }
[ "func", "(", "s", "*", "VoiceConnector", ")", "SetOutboundHostName", "(", "v", "string", ")", "*", "VoiceConnector", "{", "s", ".", "OutboundHostName", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetOutboundHostName sets the OutboundHostName field's value.
[ "SetOutboundHostName", "sets", "the", "OutboundHostName", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/chime/api.go#L10241-L10244
2,664
aws/aws-sdk-go
aws/csm/reporter.go
Pause
func (rep *Reporter) Pause() { lock.Lock() defer lock.Unlock() if rep == nil { return } rep.close() }
go
func (rep *Reporter) Pause() { lock.Lock() defer lock.Unlock() if rep == nil { return } rep.close() }
[ "func", "(", "rep", "*", "Reporter", ")", "Pause", "(", ")", "{", "lock", ".", "Lock", "(", ")", "\n", "defer", "lock", ".", "Unlock", "(", ")", "\n\n", "if", "rep", "==", "nil", "{", "return", "\n", "}", "\n\n", "rep", ".", "close", "(", ")", "\n", "}" ]
// Pause will pause the metric channel preventing any new metrics from // being added.
[ "Pause", "will", "pause", "the", "metric", "channel", "preventing", "any", "new", "metrics", "from", "being", "added", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/csm/reporter.go#L195-L204
2,665
aws/aws-sdk-go
aws/csm/reporter.go
Continue
func (rep *Reporter) Continue() { lock.Lock() defer lock.Unlock() if rep == nil { return } if !rep.metricsCh.IsPaused() { return } rep.metricsCh.Continue() }
go
func (rep *Reporter) Continue() { lock.Lock() defer lock.Unlock() if rep == nil { return } if !rep.metricsCh.IsPaused() { return } rep.metricsCh.Continue() }
[ "func", "(", "rep", "*", "Reporter", ")", "Continue", "(", ")", "{", "lock", ".", "Lock", "(", ")", "\n", "defer", "lock", ".", "Unlock", "(", ")", "\n", "if", "rep", "==", "nil", "{", "return", "\n", "}", "\n\n", "if", "!", "rep", ".", "metricsCh", ".", "IsPaused", "(", ")", "{", "return", "\n", "}", "\n\n", "rep", ".", "metricsCh", ".", "Continue", "(", ")", "\n", "}" ]
// Continue will reopen the metric channel and allow for monitoring // to be resumed.
[ "Continue", "will", "reopen", "the", "metric", "channel", "and", "allow", "for", "monitoring", "to", "be", "resumed", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/csm/reporter.go#L208-L220
2,666
aws/aws-sdk-go
aws/client/client.go
New
func New(cfg aws.Config, info metadata.ClientInfo, handlers request.Handlers, options ...func(*Client)) *Client { svc := &Client{ Config: cfg, ClientInfo: info, Handlers: handlers.Copy(), } switch retryer, ok := cfg.Retryer.(request.Retryer); { case ok: svc.Retryer = retryer case cfg.Retryer != nil && cfg.Logger != nil: s := fmt.Sprintf("WARNING: %T does not implement request.Retryer; using DefaultRetryer instead", cfg.Retryer) cfg.Logger.Log(s) fallthrough default: maxRetries := aws.IntValue(cfg.MaxRetries) if cfg.MaxRetries == nil || maxRetries == aws.UseServiceDefaultRetries { maxRetries = 3 } svc.Retryer = DefaultRetryer{NumMaxRetries: maxRetries} } svc.AddDebugHandlers() for _, option := range options { option(svc) } return svc }
go
func New(cfg aws.Config, info metadata.ClientInfo, handlers request.Handlers, options ...func(*Client)) *Client { svc := &Client{ Config: cfg, ClientInfo: info, Handlers: handlers.Copy(), } switch retryer, ok := cfg.Retryer.(request.Retryer); { case ok: svc.Retryer = retryer case cfg.Retryer != nil && cfg.Logger != nil: s := fmt.Sprintf("WARNING: %T does not implement request.Retryer; using DefaultRetryer instead", cfg.Retryer) cfg.Logger.Log(s) fallthrough default: maxRetries := aws.IntValue(cfg.MaxRetries) if cfg.MaxRetries == nil || maxRetries == aws.UseServiceDefaultRetries { maxRetries = 3 } svc.Retryer = DefaultRetryer{NumMaxRetries: maxRetries} } svc.AddDebugHandlers() for _, option := range options { option(svc) } return svc }
[ "func", "New", "(", "cfg", "aws", ".", "Config", ",", "info", "metadata", ".", "ClientInfo", ",", "handlers", "request", ".", "Handlers", ",", "options", "...", "func", "(", "*", "Client", ")", ")", "*", "Client", "{", "svc", ":=", "&", "Client", "{", "Config", ":", "cfg", ",", "ClientInfo", ":", "info", ",", "Handlers", ":", "handlers", ".", "Copy", "(", ")", ",", "}", "\n\n", "switch", "retryer", ",", "ok", ":=", "cfg", ".", "Retryer", ".", "(", "request", ".", "Retryer", ")", ";", "{", "case", "ok", ":", "svc", ".", "Retryer", "=", "retryer", "\n", "case", "cfg", ".", "Retryer", "!=", "nil", "&&", "cfg", ".", "Logger", "!=", "nil", ":", "s", ":=", "fmt", ".", "Sprintf", "(", "\"", "\"", ",", "cfg", ".", "Retryer", ")", "\n", "cfg", ".", "Logger", ".", "Log", "(", "s", ")", "\n", "fallthrough", "\n", "default", ":", "maxRetries", ":=", "aws", ".", "IntValue", "(", "cfg", ".", "MaxRetries", ")", "\n", "if", "cfg", ".", "MaxRetries", "==", "nil", "||", "maxRetries", "==", "aws", ".", "UseServiceDefaultRetries", "{", "maxRetries", "=", "3", "\n", "}", "\n", "svc", ".", "Retryer", "=", "DefaultRetryer", "{", "NumMaxRetries", ":", "maxRetries", "}", "\n", "}", "\n\n", "svc", ".", "AddDebugHandlers", "(", ")", "\n\n", "for", "_", ",", "option", ":=", "range", "options", "{", "option", "(", "svc", ")", "\n", "}", "\n\n", "return", "svc", "\n", "}" ]
// New will return a pointer to a new initialized service client.
[ "New", "will", "return", "a", "pointer", "to", "a", "new", "initialized", "service", "client", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/client/client.go#L50-L79
2,667
aws/aws-sdk-go
aws/client/client.go
NewRequest
func (c *Client) NewRequest(operation *request.Operation, params interface{}, data interface{}) *request.Request { return request.New(c.Config, c.ClientInfo, c.Handlers, c.Retryer, operation, params, data) }
go
func (c *Client) NewRequest(operation *request.Operation, params interface{}, data interface{}) *request.Request { return request.New(c.Config, c.ClientInfo, c.Handlers, c.Retryer, operation, params, data) }
[ "func", "(", "c", "*", "Client", ")", "NewRequest", "(", "operation", "*", "request", ".", "Operation", ",", "params", "interface", "{", "}", ",", "data", "interface", "{", "}", ")", "*", "request", ".", "Request", "{", "return", "request", ".", "New", "(", "c", ".", "Config", ",", "c", ".", "ClientInfo", ",", "c", ".", "Handlers", ",", "c", ".", "Retryer", ",", "operation", ",", "params", ",", "data", ")", "\n", "}" ]
// NewRequest returns a new Request pointer for the service API // operation and parameters.
[ "NewRequest", "returns", "a", "new", "Request", "pointer", "for", "the", "service", "API", "operation", "and", "parameters", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/client/client.go#L83-L85
2,668
aws/aws-sdk-go
aws/client/client.go
AddDebugHandlers
func (c *Client) AddDebugHandlers() { if !c.Config.LogLevel.AtLeast(aws.LogDebug) { return } c.Handlers.Send.PushFrontNamed(LogHTTPRequestHandler) c.Handlers.Send.PushBackNamed(LogHTTPResponseHandler) }
go
func (c *Client) AddDebugHandlers() { if !c.Config.LogLevel.AtLeast(aws.LogDebug) { return } c.Handlers.Send.PushFrontNamed(LogHTTPRequestHandler) c.Handlers.Send.PushBackNamed(LogHTTPResponseHandler) }
[ "func", "(", "c", "*", "Client", ")", "AddDebugHandlers", "(", ")", "{", "if", "!", "c", ".", "Config", ".", "LogLevel", ".", "AtLeast", "(", "aws", ".", "LogDebug", ")", "{", "return", "\n", "}", "\n\n", "c", ".", "Handlers", ".", "Send", ".", "PushFrontNamed", "(", "LogHTTPRequestHandler", ")", "\n", "c", ".", "Handlers", ".", "Send", ".", "PushBackNamed", "(", "LogHTTPResponseHandler", ")", "\n", "}" ]
// AddDebugHandlers injects debug logging handlers into the service to log request // debug information.
[ "AddDebugHandlers", "injects", "debug", "logging", "handlers", "into", "the", "service", "to", "log", "request", "debug", "information", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/aws/client/client.go#L89-L96
2,669
aws/aws-sdk-go
service/lambda/api.go
SetCodeSizeUnzipped
func (s *AccountLimit) SetCodeSizeUnzipped(v int64) *AccountLimit { s.CodeSizeUnzipped = &v return s }
go
func (s *AccountLimit) SetCodeSizeUnzipped(v int64) *AccountLimit { s.CodeSizeUnzipped = &v return s }
[ "func", "(", "s", "*", "AccountLimit", ")", "SetCodeSizeUnzipped", "(", "v", "int64", ")", "*", "AccountLimit", "{", "s", ".", "CodeSizeUnzipped", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetCodeSizeUnzipped sets the CodeSizeUnzipped field's value.
[ "SetCodeSizeUnzipped", "sets", "the", "CodeSizeUnzipped", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/lambda/api.go#L4025-L4028
2,670
aws/aws-sdk-go
service/lambda/api.go
SetCodeSizeZipped
func (s *AccountLimit) SetCodeSizeZipped(v int64) *AccountLimit { s.CodeSizeZipped = &v return s }
go
func (s *AccountLimit) SetCodeSizeZipped(v int64) *AccountLimit { s.CodeSizeZipped = &v return s }
[ "func", "(", "s", "*", "AccountLimit", ")", "SetCodeSizeZipped", "(", "v", "int64", ")", "*", "AccountLimit", "{", "s", ".", "CodeSizeZipped", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetCodeSizeZipped sets the CodeSizeZipped field's value.
[ "SetCodeSizeZipped", "sets", "the", "CodeSizeZipped", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/lambda/api.go#L4031-L4034
2,671
aws/aws-sdk-go
service/lambda/api.go
SetUnreservedConcurrentExecutions
func (s *AccountLimit) SetUnreservedConcurrentExecutions(v int64) *AccountLimit { s.UnreservedConcurrentExecutions = &v return s }
go
func (s *AccountLimit) SetUnreservedConcurrentExecutions(v int64) *AccountLimit { s.UnreservedConcurrentExecutions = &v return s }
[ "func", "(", "s", "*", "AccountLimit", ")", "SetUnreservedConcurrentExecutions", "(", "v", "int64", ")", "*", "AccountLimit", "{", "s", ".", "UnreservedConcurrentExecutions", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetUnreservedConcurrentExecutions sets the UnreservedConcurrentExecutions field's value.
[ "SetUnreservedConcurrentExecutions", "sets", "the", "UnreservedConcurrentExecutions", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/lambda/api.go#L4049-L4052
2,672
aws/aws-sdk-go
service/lambda/api.go
SetFunctionCount
func (s *AccountUsage) SetFunctionCount(v int64) *AccountUsage { s.FunctionCount = &v return s }
go
func (s *AccountUsage) SetFunctionCount(v int64) *AccountUsage { s.FunctionCount = &v return s }
[ "func", "(", "s", "*", "AccountUsage", ")", "SetFunctionCount", "(", "v", "int64", ")", "*", "AccountUsage", "{", "s", ".", "FunctionCount", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetFunctionCount sets the FunctionCount field's value.
[ "SetFunctionCount", "sets", "the", "FunctionCount", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/lambda/api.go#L4077-L4080
2,673
aws/aws-sdk-go
service/lambda/api.go
SetEventSourceToken
func (s *AddPermissionInput) SetEventSourceToken(v string) *AddPermissionInput { s.EventSourceToken = &v return s }
go
func (s *AddPermissionInput) SetEventSourceToken(v string) *AddPermissionInput { s.EventSourceToken = &v return s }
[ "func", "(", "s", "*", "AddPermissionInput", ")", "SetEventSourceToken", "(", "v", "string", ")", "*", "AddPermissionInput", "{", "s", ".", "EventSourceToken", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetEventSourceToken sets the EventSourceToken field's value.
[ "SetEventSourceToken", "sets", "the", "EventSourceToken", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/lambda/api.go#L4353-L4356
2,674
aws/aws-sdk-go
service/lambda/api.go
SetAdditionalVersionWeights
func (s *AliasRoutingConfiguration) SetAdditionalVersionWeights(v map[string]*float64) *AliasRoutingConfiguration { s.AdditionalVersionWeights = v return s }
go
func (s *AliasRoutingConfiguration) SetAdditionalVersionWeights(v map[string]*float64) *AliasRoutingConfiguration { s.AdditionalVersionWeights = v return s }
[ "func", "(", "s", "*", "AliasRoutingConfiguration", ")", "SetAdditionalVersionWeights", "(", "v", "map", "[", "string", "]", "*", "float64", ")", "*", "AliasRoutingConfiguration", "{", "s", ".", "AdditionalVersionWeights", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetAdditionalVersionWeights sets the AdditionalVersionWeights field's value.
[ "SetAdditionalVersionWeights", "sets", "the", "AdditionalVersionWeights", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/lambda/api.go#L4514-L4517
2,675
aws/aws-sdk-go
service/lambda/api.go
SetStartingPositionTimestamp
func (s *CreateEventSourceMappingInput) SetStartingPositionTimestamp(v time.Time) *CreateEventSourceMappingInput { s.StartingPositionTimestamp = &v return s }
go
func (s *CreateEventSourceMappingInput) SetStartingPositionTimestamp(v time.Time) *CreateEventSourceMappingInput { s.StartingPositionTimestamp = &v return s }
[ "func", "(", "s", "*", "CreateEventSourceMappingInput", ")", "SetStartingPositionTimestamp", "(", "v", "time", ".", "Time", ")", "*", "CreateEventSourceMappingInput", "{", "s", ".", "StartingPositionTimestamp", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetStartingPositionTimestamp sets the StartingPositionTimestamp field's value.
[ "SetStartingPositionTimestamp", "sets", "the", "StartingPositionTimestamp", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/lambda/api.go#L4740-L4743
2,676
aws/aws-sdk-go
service/lambda/api.go
SetLastProcessingResult
func (s *EventSourceMappingConfiguration) SetLastProcessingResult(v string) *EventSourceMappingConfiguration { s.LastProcessingResult = &v return s }
go
func (s *EventSourceMappingConfiguration) SetLastProcessingResult(v string) *EventSourceMappingConfiguration { s.LastProcessingResult = &v return s }
[ "func", "(", "s", "*", "EventSourceMappingConfiguration", ")", "SetLastProcessingResult", "(", "v", "string", ")", "*", "EventSourceMappingConfiguration", "{", "s", ".", "LastProcessingResult", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetLastProcessingResult sets the LastProcessingResult field's value.
[ "SetLastProcessingResult", "sets", "the", "LastProcessingResult", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/lambda/api.go#L5500-L5503
2,677
aws/aws-sdk-go
service/lambda/api.go
SetStateTransitionReason
func (s *EventSourceMappingConfiguration) SetStateTransitionReason(v string) *EventSourceMappingConfiguration { s.StateTransitionReason = &v return s }
go
func (s *EventSourceMappingConfiguration) SetStateTransitionReason(v string) *EventSourceMappingConfiguration { s.StateTransitionReason = &v return s }
[ "func", "(", "s", "*", "EventSourceMappingConfiguration", ")", "SetStateTransitionReason", "(", "v", "string", ")", "*", "EventSourceMappingConfiguration", "{", "s", ".", "StateTransitionReason", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetStateTransitionReason sets the StateTransitionReason field's value.
[ "SetStateTransitionReason", "sets", "the", "StateTransitionReason", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/lambda/api.go#L5512-L5515
2,678
aws/aws-sdk-go
service/lambda/api.go
SetMasterArn
func (s *FunctionConfiguration) SetMasterArn(v string) *FunctionConfiguration { s.MasterArn = &v return s }
go
func (s *FunctionConfiguration) SetMasterArn(v string) *FunctionConfiguration { s.MasterArn = &v return s }
[ "func", "(", "s", "*", "FunctionConfiguration", ")", "SetMasterArn", "(", "v", "string", ")", "*", "FunctionConfiguration", "{", "s", ".", "MasterArn", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetMasterArn sets the MasterArn field's value.
[ "SetMasterArn", "sets", "the", "MasterArn", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/lambda/api.go#L5775-L5778
2,679
aws/aws-sdk-go
service/lambda/api.go
SetAccountLimit
func (s *GetAccountSettingsOutput) SetAccountLimit(v *AccountLimit) *GetAccountSettingsOutput { s.AccountLimit = v return s }
go
func (s *GetAccountSettingsOutput) SetAccountLimit(v *AccountLimit) *GetAccountSettingsOutput { s.AccountLimit = v return s }
[ "func", "(", "s", "*", "GetAccountSettingsOutput", ")", "SetAccountLimit", "(", "v", "*", "AccountLimit", ")", "*", "GetAccountSettingsOutput", "{", "s", ".", "AccountLimit", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetAccountLimit sets the AccountLimit field's value.
[ "SetAccountLimit", "sets", "the", "AccountLimit", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/lambda/api.go#L5863-L5866
2,680
aws/aws-sdk-go
service/lambda/api.go
SetAccountUsage
func (s *GetAccountSettingsOutput) SetAccountUsage(v *AccountUsage) *GetAccountSettingsOutput { s.AccountUsage = v return s }
go
func (s *GetAccountSettingsOutput) SetAccountUsage(v *AccountUsage) *GetAccountSettingsOutput { s.AccountUsage = v return s }
[ "func", "(", "s", "*", "GetAccountSettingsOutput", ")", "SetAccountUsage", "(", "v", "*", "AccountUsage", ")", "*", "GetAccountSettingsOutput", "{", "s", ".", "AccountUsage", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetAccountUsage sets the AccountUsage field's value.
[ "SetAccountUsage", "sets", "the", "AccountUsage", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/lambda/api.go#L5869-L5872
2,681
aws/aws-sdk-go
service/lambda/api.go
SetConcurrency
func (s *GetFunctionOutput) SetConcurrency(v *PutFunctionConcurrencyOutput) *GetFunctionOutput { s.Concurrency = v return s }
go
func (s *GetFunctionOutput) SetConcurrency(v *PutFunctionConcurrencyOutput) *GetFunctionOutput { s.Concurrency = v return s }
[ "func", "(", "s", "*", "GetFunctionOutput", ")", "SetConcurrency", "(", "v", "*", "PutFunctionConcurrencyOutput", ")", "*", "GetFunctionOutput", "{", "s", ".", "Concurrency", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetConcurrency sets the Concurrency field's value.
[ "SetConcurrency", "sets", "the", "Concurrency", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/lambda/api.go#L6149-L6152
2,682
aws/aws-sdk-go
service/lambda/api.go
SetInvokeArgs
func (s *InvokeAsyncInput) SetInvokeArgs(v io.ReadSeeker) *InvokeAsyncInput { s.InvokeArgs = v return s }
go
func (s *InvokeAsyncInput) SetInvokeArgs(v io.ReadSeeker) *InvokeAsyncInput { s.InvokeArgs = v return s }
[ "func", "(", "s", "*", "InvokeAsyncInput", ")", "SetInvokeArgs", "(", "v", "io", ".", "ReadSeeker", ")", "*", "InvokeAsyncInput", "{", "s", ".", "InvokeArgs", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetInvokeArgs sets the InvokeArgs field's value.
[ "SetInvokeArgs", "sets", "the", "InvokeArgs", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/lambda/api.go#L6682-L6685
2,683
aws/aws-sdk-go
service/lambda/api.go
SetLogType
func (s *InvokeInput) SetLogType(v string) *InvokeInput { s.LogType = &v return s }
go
func (s *InvokeInput) SetLogType(v string) *InvokeInput { s.LogType = &v return s }
[ "func", "(", "s", "*", "InvokeInput", ")", "SetLogType", "(", "v", "string", ")", "*", "InvokeInput", "{", "s", ".", "LogType", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetLogType sets the LogType field's value.
[ "SetLogType", "sets", "the", "LogType", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/lambda/api.go#L6810-L6813
2,684
aws/aws-sdk-go
service/lambda/api.go
SetExecutedVersion
func (s *InvokeOutput) SetExecutedVersion(v string) *InvokeOutput { s.ExecutedVersion = &v return s }
go
func (s *InvokeOutput) SetExecutedVersion(v string) *InvokeOutput { s.ExecutedVersion = &v return s }
[ "func", "(", "s", "*", "InvokeOutput", ")", "SetExecutedVersion", "(", "v", "string", ")", "*", "InvokeOutput", "{", "s", ".", "ExecutedVersion", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetExecutedVersion sets the ExecutedVersion field's value.
[ "SetExecutedVersion", "sets", "the", "ExecutedVersion", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/lambda/api.go#L6868-L6871
2,685
aws/aws-sdk-go
service/lambda/api.go
SetFunctionError
func (s *InvokeOutput) SetFunctionError(v string) *InvokeOutput { s.FunctionError = &v return s }
go
func (s *InvokeOutput) SetFunctionError(v string) *InvokeOutput { s.FunctionError = &v return s }
[ "func", "(", "s", "*", "InvokeOutput", ")", "SetFunctionError", "(", "v", "string", ")", "*", "InvokeOutput", "{", "s", ".", "FunctionError", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetFunctionError sets the FunctionError field's value.
[ "SetFunctionError", "sets", "the", "FunctionError", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/lambda/api.go#L6874-L6877
2,686
aws/aws-sdk-go
service/lambda/api.go
SetEventSourceMappings
func (s *ListEventSourceMappingsOutput) SetEventSourceMappings(v []*EventSourceMappingConfiguration) *ListEventSourceMappingsOutput { s.EventSourceMappings = v return s }
go
func (s *ListEventSourceMappingsOutput) SetEventSourceMappings(v []*EventSourceMappingConfiguration) *ListEventSourceMappingsOutput { s.EventSourceMappings = v return s }
[ "func", "(", "s", "*", "ListEventSourceMappingsOutput", ")", "SetEventSourceMappings", "(", "v", "[", "]", "*", "EventSourceMappingConfiguration", ")", "*", "ListEventSourceMappingsOutput", "{", "s", ".", "EventSourceMappings", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetEventSourceMappings sets the EventSourceMappings field's value.
[ "SetEventSourceMappings", "sets", "the", "EventSourceMappings", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/lambda/api.go#L7382-L7385
2,687
aws/aws-sdk-go
service/lambda/api.go
SetMasterRegion
func (s *ListFunctionsInput) SetMasterRegion(v string) *ListFunctionsInput { s.MasterRegion = &v return s }
go
func (s *ListFunctionsInput) SetMasterRegion(v string) *ListFunctionsInput { s.MasterRegion = &v return s }
[ "func", "(", "s", "*", "ListFunctionsInput", ")", "SetMasterRegion", "(", "v", "string", ")", "*", "ListFunctionsInput", "{", "s", ".", "MasterRegion", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetMasterRegion sets the MasterRegion field's value.
[ "SetMasterRegion", "sets", "the", "MasterRegion", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/lambda/api.go#L7448-L7451
2,688
aws/aws-sdk-go
service/lambda/api.go
SetLayerVersions
func (s *ListLayerVersionsOutput) SetLayerVersions(v []*LayerVersionsListItem) *ListLayerVersionsOutput { s.LayerVersions = v return s }
go
func (s *ListLayerVersionsOutput) SetLayerVersions(v []*LayerVersionsListItem) *ListLayerVersionsOutput { s.LayerVersions = v return s }
[ "func", "(", "s", "*", "ListLayerVersionsOutput", ")", "SetLayerVersions", "(", "v", "[", "]", "*", "LayerVersionsListItem", ")", "*", "ListLayerVersionsOutput", "{", "s", ".", "LayerVersions", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetLayerVersions sets the LayerVersions field's value.
[ "SetLayerVersions", "sets", "the", "LayerVersions", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/lambda/api.go#L7584-L7587
2,689
aws/aws-sdk-go
example/aws/credentials/plugincreds/plugin/plugin.go
GetAWSSDKCredentialProvider
func GetAWSSDKCredentialProvider() (func() (key, secret, token string, err error), func() bool) { return myCredProvider.Retrieve, myCredProvider.IsExpired }
go
func GetAWSSDKCredentialProvider() (func() (key, secret, token string, err error), func() bool) { return myCredProvider.Retrieve, myCredProvider.IsExpired }
[ "func", "GetAWSSDKCredentialProvider", "(", ")", "(", "func", "(", ")", "(", "key", ",", "secret", ",", "token", "string", ",", "err", "error", ")", ",", "func", "(", ")", "bool", ")", "{", "return", "myCredProvider", ".", "Retrieve", ",", "myCredProvider", ".", "IsExpired", "\n", "}" ]
// GetAWSSDKCredentialProvider is the symbol SDK will lookup and use to // get the credential provider's retrieve and isExpired functions.
[ "GetAWSSDKCredentialProvider", "is", "the", "symbol", "SDK", "will", "lookup", "and", "use", "to", "get", "the", "credential", "provider", "s", "retrieve", "and", "isExpired", "functions", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/example/aws/credentials/plugincreds/plugin/plugin.go#L28-L30
2,690
aws/aws-sdk-go
internal/ini/parse_stack.go
Pop
func (s *ParseStack) Pop() AST { s.top-- return s.container[s.top] }
go
func (s *ParseStack) Pop() AST { s.top-- return s.container[s.top] }
[ "func", "(", "s", "*", "ParseStack", ")", "Pop", "(", ")", "AST", "{", "s", ".", "top", "--", "\n", "return", "s", ".", "container", "[", "s", ".", "top", "]", "\n", "}" ]
// Pop will return and truncate the last container element.
[ "Pop", "will", "return", "and", "truncate", "the", "last", "container", "element", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/internal/ini/parse_stack.go#L26-L29
2,691
aws/aws-sdk-go
internal/ini/parse_stack.go
Push
func (s *ParseStack) Push(ast AST) { s.container[s.top] = ast s.top++ }
go
func (s *ParseStack) Push(ast AST) { s.container[s.top] = ast s.top++ }
[ "func", "(", "s", "*", "ParseStack", ")", "Push", "(", "ast", "AST", ")", "{", "s", ".", "container", "[", "s", ".", "top", "]", "=", "ast", "\n", "s", ".", "top", "++", "\n", "}" ]
// Push will add the new AST to the container
[ "Push", "will", "add", "the", "new", "AST", "to", "the", "container" ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/internal/ini/parse_stack.go#L32-L35
2,692
aws/aws-sdk-go
internal/ini/parse_stack.go
MarkComplete
func (s *ParseStack) MarkComplete(ast AST) { s.list[s.index] = ast s.index++ }
go
func (s *ParseStack) MarkComplete(ast AST) { s.list[s.index] = ast s.index++ }
[ "func", "(", "s", "*", "ParseStack", ")", "MarkComplete", "(", "ast", "AST", ")", "{", "s", ".", "list", "[", "s", ".", "index", "]", "=", "ast", "\n", "s", ".", "index", "++", "\n", "}" ]
// MarkComplete will append the AST to the list of completed statements
[ "MarkComplete", "will", "append", "the", "AST", "to", "the", "list", "of", "completed", "statements" ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/internal/ini/parse_stack.go#L38-L41
2,693
aws/aws-sdk-go
service/licensemanager/api.go
SetLicenseConfigurationAssociations
func (s *ListAssociationsForLicenseConfigurationOutput) SetLicenseConfigurationAssociations(v []*LicenseConfigurationAssociation) *ListAssociationsForLicenseConfigurationOutput { s.LicenseConfigurationAssociations = v return s }
go
func (s *ListAssociationsForLicenseConfigurationOutput) SetLicenseConfigurationAssociations(v []*LicenseConfigurationAssociation) *ListAssociationsForLicenseConfigurationOutput { s.LicenseConfigurationAssociations = v return s }
[ "func", "(", "s", "*", "ListAssociationsForLicenseConfigurationOutput", ")", "SetLicenseConfigurationAssociations", "(", "v", "[", "]", "*", "LicenseConfigurationAssociation", ")", "*", "ListAssociationsForLicenseConfigurationOutput", "{", "s", ".", "LicenseConfigurationAssociations", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetLicenseConfigurationAssociations sets the LicenseConfigurationAssociations field's value.
[ "SetLicenseConfigurationAssociations", "sets", "the", "LicenseConfigurationAssociations", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/licensemanager/api.go#L2381-L2384
2,694
aws/aws-sdk-go
service/licensemanager/api.go
SetLicenseConfigurationArns
func (s *ListLicenseConfigurationsInput) SetLicenseConfigurationArns(v []*string) *ListLicenseConfigurationsInput { s.LicenseConfigurationArns = v return s }
go
func (s *ListLicenseConfigurationsInput) SetLicenseConfigurationArns(v []*string) *ListLicenseConfigurationsInput { s.LicenseConfigurationArns = v return s }
[ "func", "(", "s", "*", "ListLicenseConfigurationsInput", ")", "SetLicenseConfigurationArns", "(", "v", "[", "]", "*", "string", ")", "*", "ListLicenseConfigurationsInput", "{", "s", ".", "LicenseConfigurationArns", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetLicenseConfigurationArns sets the LicenseConfigurationArns field's value.
[ "SetLicenseConfigurationArns", "sets", "the", "LicenseConfigurationArns", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/licensemanager/api.go#L2426-L2429
2,695
aws/aws-sdk-go
service/licensemanager/api.go
SetLicenseConfigurations
func (s *ListLicenseConfigurationsOutput) SetLicenseConfigurations(v []*LicenseConfiguration) *ListLicenseConfigurationsOutput { s.LicenseConfigurations = v return s }
go
func (s *ListLicenseConfigurationsOutput) SetLicenseConfigurations(v []*LicenseConfiguration) *ListLicenseConfigurationsOutput { s.LicenseConfigurations = v return s }
[ "func", "(", "s", "*", "ListLicenseConfigurationsOutput", ")", "SetLicenseConfigurations", "(", "v", "[", "]", "*", "LicenseConfiguration", ")", "*", "ListLicenseConfigurationsOutput", "{", "s", ".", "LicenseConfigurations", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetLicenseConfigurations sets the LicenseConfigurations field's value.
[ "SetLicenseConfigurations", "sets", "the", "LicenseConfigurations", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/licensemanager/api.go#L2464-L2467
2,696
aws/aws-sdk-go
service/licensemanager/api.go
SetLicenseSpecifications
func (s *ListLicenseSpecificationsForResourceOutput) SetLicenseSpecifications(v []*LicenseSpecification) *ListLicenseSpecificationsForResourceOutput { s.LicenseSpecifications = v return s }
go
func (s *ListLicenseSpecificationsForResourceOutput) SetLicenseSpecifications(v []*LicenseSpecification) *ListLicenseSpecificationsForResourceOutput { s.LicenseSpecifications = v return s }
[ "func", "(", "s", "*", "ListLicenseSpecificationsForResourceOutput", ")", "SetLicenseSpecifications", "(", "v", "[", "]", "*", "LicenseSpecification", ")", "*", "ListLicenseSpecificationsForResourceOutput", "{", "s", ".", "LicenseSpecifications", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetLicenseSpecifications sets the LicenseSpecifications field's value.
[ "SetLicenseSpecifications", "sets", "the", "LicenseSpecifications", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/licensemanager/api.go#L2553-L2556
2,697
aws/aws-sdk-go
service/licensemanager/api.go
SetResourceInventoryList
func (s *ListResourceInventoryOutput) SetResourceInventoryList(v []*ResourceInventory) *ListResourceInventoryOutput { s.ResourceInventoryList = v return s }
go
func (s *ListResourceInventoryOutput) SetResourceInventoryList(v []*ResourceInventory) *ListResourceInventoryOutput { s.ResourceInventoryList = v return s }
[ "func", "(", "s", "*", "ListResourceInventoryOutput", ")", "SetResourceInventoryList", "(", "v", "[", "]", "*", "ResourceInventory", ")", "*", "ListResourceInventoryOutput", "{", "s", ".", "ResourceInventoryList", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetResourceInventoryList sets the ResourceInventoryList field's value.
[ "SetResourceInventoryList", "sets", "the", "ResourceInventoryList", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/licensemanager/api.go#L2653-L2656
2,698
aws/aws-sdk-go
service/licensemanager/api.go
SetLicenseConfigurationUsageList
func (s *ListUsageForLicenseConfigurationOutput) SetLicenseConfigurationUsageList(v []*LicenseConfigurationUsage) *ListUsageForLicenseConfigurationOutput { s.LicenseConfigurationUsageList = v return s }
go
func (s *ListUsageForLicenseConfigurationOutput) SetLicenseConfigurationUsageList(v []*LicenseConfigurationUsage) *ListUsageForLicenseConfigurationOutput { s.LicenseConfigurationUsageList = v return s }
[ "func", "(", "s", "*", "ListUsageForLicenseConfigurationOutput", ")", "SetLicenseConfigurationUsageList", "(", "v", "[", "]", "*", "LicenseConfigurationUsage", ")", "*", "ListUsageForLicenseConfigurationOutput", "{", "s", ".", "LicenseConfigurationUsageList", "=", "v", "\n", "return", "s", "\n", "}" ]
// SetLicenseConfigurationUsageList sets the LicenseConfigurationUsageList field's value.
[ "SetLicenseConfigurationUsageList", "sets", "the", "LicenseConfigurationUsageList", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/licensemanager/api.go#L2806-L2809
2,699
aws/aws-sdk-go
service/licensemanager/api.go
SetAssociationCount
func (s *ManagedResourceSummary) SetAssociationCount(v int64) *ManagedResourceSummary { s.AssociationCount = &v return s }
go
func (s *ManagedResourceSummary) SetAssociationCount(v int64) *ManagedResourceSummary { s.AssociationCount = &v return s }
[ "func", "(", "s", "*", "ManagedResourceSummary", ")", "SetAssociationCount", "(", "v", "int64", ")", "*", "ManagedResourceSummary", "{", "s", ".", "AssociationCount", "=", "&", "v", "\n", "return", "s", "\n", "}" ]
// SetAssociationCount sets the AssociationCount field's value.
[ "SetAssociationCount", "sets", "the", "AssociationCount", "field", "s", "value", "." ]
6c4060605190fc6f00d63cd4e5572faa9f07345d
https://github.com/aws/aws-sdk-go/blob/6c4060605190fc6f00d63cd4e5572faa9f07345d/service/licensemanager/api.go#L2839-L2842