@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ServiceNowConnectorProfileCredentials extends Object implements Serializable, Cloneable, StructuredPojo
The connector-specific profile credentials required when using ServiceNow.
Constructor and Description |
---|
ServiceNowConnectorProfileCredentials() |
Modifier and Type | Method and Description |
---|---|
ServiceNowConnectorProfileCredentials |
clone() |
boolean |
equals(Object obj) |
OAuth2Credentials |
getOAuth2Credentials()
The OAuth 2.0 credentials required to authenticate the user.
|
String |
getPassword()
The password that corresponds to the user name.
|
String |
getUsername()
The name of the user.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setOAuth2Credentials(OAuth2Credentials oAuth2Credentials)
The OAuth 2.0 credentials required to authenticate the user.
|
void |
setPassword(String password)
The password that corresponds to the user name.
|
void |
setUsername(String username)
The name of the user.
|
String |
toString()
Returns a string representation of this object.
|
ServiceNowConnectorProfileCredentials |
withOAuth2Credentials(OAuth2Credentials oAuth2Credentials)
The OAuth 2.0 credentials required to authenticate the user.
|
ServiceNowConnectorProfileCredentials |
withPassword(String password)
The password that corresponds to the user name.
|
ServiceNowConnectorProfileCredentials |
withUsername(String username)
The name of the user.
|
public ServiceNowConnectorProfileCredentials()
public void setUsername(String username)
The name of the user.
username
- The name of the user.public String getUsername()
The name of the user.
public ServiceNowConnectorProfileCredentials withUsername(String username)
The name of the user.
username
- The name of the user.public void setPassword(String password)
The password that corresponds to the user name.
password
- The password that corresponds to the user name.public String getPassword()
The password that corresponds to the user name.
public ServiceNowConnectorProfileCredentials withPassword(String password)
The password that corresponds to the user name.
password
- The password that corresponds to the user name.public void setOAuth2Credentials(OAuth2Credentials oAuth2Credentials)
The OAuth 2.0 credentials required to authenticate the user.
oAuth2Credentials
- The OAuth 2.0 credentials required to authenticate the user.public OAuth2Credentials getOAuth2Credentials()
The OAuth 2.0 credentials required to authenticate the user.
public ServiceNowConnectorProfileCredentials withOAuth2Credentials(OAuth2Credentials oAuth2Credentials)
The OAuth 2.0 credentials required to authenticate the user.
oAuth2Credentials
- The OAuth 2.0 credentials required to authenticate the user.public String toString()
toString
in class Object
Object.toString()
public ServiceNowConnectorProfileCredentials clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.