// SetAuthenticationToken sets the AuthenticationToken field's value.
14603
func (s *AddResourcePermissionsInput) SetAuthenticationToken(v string) *AddResourcePermissionsInput {
	s.AuthenticationToken = &v
	return s
}
867784
func (s *UpdateDocumentInput) SetAuthenticationToken(v string) *UpdateDocumentInput {
	s.AuthenticationToken = &v
	return s
}
466115
func (c *Client) SetToken(token string, tokenSecret string) {
	c.user = oauth1.NewToken(token, tokenSecret)
	c.client = nil
}
800189
func (s *DeleteUserInput) SetAuthenticationToken(v string) *DeleteUserInput {
	s.AuthenticationToken = &v
	return s
}
1220170
func (s *User) SetAuthenticationType(v string) *User {
	s.AuthenticationType = &v
	return s
}
732101
func (s *CreateSMBFileShareInput) SetAuthentication(v string) *CreateSMBFileShareInput {
	s.Authentication = &v
	return s
}
784845
func (s *DeleteDocumentInput) SetAuthenticationToken(v string) *DeleteDocumentInput {
	s.AuthenticationToken = &v
	return s
}
449947
func (s *CreateUserPoolInput) SetSmsAuthenticationMessage(v string) *CreateUserPoolInput {
	s.SmsAuthenticationMessage = &v
	return s
}
1086753
func (c *ContivClient) SetAuthToken(token string) error {

	// setting an auth token is only allowed on secure requests.
	// if we didn't enforce this, the client could potentially send auth
	// tokens in plain text across the network.
	if !c.isHTTPS() {
		return errors.New("setting auth token requires a https auth_proxy URL")
	}

	// having multiple auth token headers is confusing and makes no sense and
	// which one is actually used depends on the implementation of the server.
	// therefore, we will raise an error if there's already an auth token set.
	for _, pair := range c.customRequestHeaders {
		if pair[0] == authTokenHeader {
			return errors.New("an auth token has already been set")
		}
	}

	c.addCustomRequestHeader(authTokenHeader, token)

	return nil
}
916070
func (s *DeleteCustomMetadataInput) SetAuthenticationToken(v string) *DeleteCustomMetadataInput {
	s.AuthenticationToken = &v
	return s
}
924462
func (s *DescribeRootFoldersInput) SetAuthenticationToken(v string) *DescribeRootFoldersInput {
	s.AuthenticationToken = &v
	return s
}
947523
func (s *DescribeSessionsInput) SetAuthenticationType(v string) *DescribeSessionsInput {
	s.AuthenticationType = &v
	return s
}
191706
func (tokenSecret *ServicePrincipalTokenSecret) SetAuthenticationValues(spt *ServicePrincipalToken, v *url.Values) error {
	v.Set("client_secret", tokenSecret.ClientSecret)
	return nil
}
1192633
func (s *GetDocumentPathInput) SetAuthenticationToken(v string) *GetDocumentPathInput {
	s.AuthenticationToken = &v
	return s
}
987753
func (s *UpdateFolderInput) SetAuthenticationToken(v string) *UpdateFolderInput {
	s.AuthenticationToken = &v
	return s
}
996728
func (s *CreateGraphqlApiInput) SetAuthenticationType(v string) *CreateGraphqlApiInput {
	s.AuthenticationType = &v
	return s
}
1250076
func (s *DescribeUsersInput) SetAuthenticationType(v string) *DescribeUsersInput {
	s.AuthenticationType = &v
	return s
}