@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()
For responses, this returns true if the service returned a value for the AlternateDataSourceParameters property.
|
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 final String username()
User name.
public final String password()
Password.
public final boolean hasAlternateDataSourceParameters()
isEmpty() method on the
property). This is useful because the SDK will never return a null collection or map, but you may need to
differentiate between the service returning nothing (or null) and the service returning an empty collection or
map. For requests, this returns true if a value for the property was specified in the request builder, and false
if a value was not specified.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.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasAlternateDataSourceParameters() method.
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 SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.