@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Credential extends Object implements Serializable, Cloneable, StructuredPojo
Contains credential information for an application.
Constructor and Description |
---|
Credential() |
Modifier and Type | Method and Description |
---|---|
Credential |
clone() |
boolean |
equals(Object obj) |
ApiKeyCredential |
getApiKeyCredential()
Contains API key credential information.
|
Oauth2Credential |
getOauth2Credential()
Contains OAuth2 client credential information.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setApiKeyCredential(ApiKeyCredential apiKeyCredential)
Contains API key credential information.
|
void |
setOauth2Credential(Oauth2Credential oauth2Credential)
Contains OAuth2 client credential information.
|
String |
toString()
Returns a string representation of this object.
|
Credential |
withApiKeyCredential(ApiKeyCredential apiKeyCredential)
Contains API key credential information.
|
Credential |
withOauth2Credential(Oauth2Credential oauth2Credential)
Contains OAuth2 client credential information.
|
public void setOauth2Credential(Oauth2Credential oauth2Credential)
Contains OAuth2 client credential information.
oauth2Credential
- Contains OAuth2 client credential information.public Oauth2Credential getOauth2Credential()
Contains OAuth2 client credential information.
public Credential withOauth2Credential(Oauth2Credential oauth2Credential)
Contains OAuth2 client credential information.
oauth2Credential
- Contains OAuth2 client credential information.public void setApiKeyCredential(ApiKeyCredential apiKeyCredential)
Contains API key credential information.
apiKeyCredential
- Contains API key credential information.public ApiKeyCredential getApiKeyCredential()
Contains API key credential information.
public Credential withApiKeyCredential(ApiKeyCredential apiKeyCredential)
Contains API key credential information.
apiKeyCredential
- Contains API key credential information.public String toString()
toString
in class Object
Object.toString()
public Credential clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.