@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, wait
copy
public final String username()
User name.
public final String password()
Password.
public final boolean hasAlternateDataSourceParameters()
public final 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 operation compares the DataSourceParameters
structure that's in the request with
the structures in the AlternateDataSourceParameters
allow list. 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
allow list. 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 final boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public final String toString()
Copyright © 2021. All rights reserved.