@Generated(value="software.amazon.awssdk:codegen") public final class CredentialPair extends Object implements SdkPojo, Serializable, ToCopyableBuilder<CredentialPair.Builder,CredentialPair>
The combination of user name and password that are used as credentials.
| Modifier and Type | Class and Description |
|---|---|
static interface |
CredentialPair.Builder |
| Modifier and Type | Method and Description |
|---|---|
List<DataSourceParameters> |
alternateDataSourceParameters()
A set of alternate data source parameters that you want to share for these credentials.
|
static CredentialPair.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasAlternateDataSourceParameters()
Returns true if the AlternateDataSourceParameters property was specified by the sender (it may be empty), or
false if the sender did not specify the value (it will be empty).
|
int |
hashCode() |
String |
password()
Password.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CredentialPair.Builder> |
serializableBuilderClass() |
CredentialPair.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
username()
User name.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic String username()
User name.
public String password()
Password.
public boolean hasAlternateDataSourceParameters()
public List<DataSourceParameters> alternateDataSourceParameters()
A set of alternate data source parameters that you want to share for these credentials. The credentials are
applied in tandem with the data source parameters when you copy a data source by using a create or update
request. The API compares the DataSourceParameters structure that's in the request with the
structures in the AlternateDataSourceParameters allowlist. If the structures are an exact match, the
request is allowed to use the new data source with the existing credentials. If the
AlternateDataSourceParameters list is null, the DataSourceParameters originally used
with these Credentials is automatically allowed.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasAlternateDataSourceParameters() to see if a value was sent in this field.
DataSourceParameters structure that's in the request
with the structures in the AlternateDataSourceParameters allowlist. If the structures are an
exact match, the request is allowed to use the new data source with the existing credentials. If the
AlternateDataSourceParameters list is null, the DataSourceParameters originally
used with these Credentials is automatically allowed.public CredentialPair.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CredentialPair.Builder,CredentialPair>public static CredentialPair.Builder builder()
public static Class<? extends CredentialPair.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2020. All rights reserved.