@Generated(value="software.amazon.awssdk:codegen") public final class Namespace extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Namespace.Builder,Namespace>
A collection of database objects and users.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Namespace.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
adminUsername()
The username of the administrator for the first database created in the namespace.
|
static Namespace.Builder |
builder() |
Instant |
creationDate()
The date of when the namespace was created.
|
String |
dbName()
The name of the first database created in the namespace.
|
String |
defaultIamRoleArn()
The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasIamRoles()
For responses, this returns true if the service returned a value for the IamRoles property.
|
boolean |
hasLogExports()
For responses, this returns true if the service returned a value for the LogExports property.
|
List<String> |
iamRoles()
A list of IAM roles to associate with the namespace.
|
String |
kmsKeyId()
The ID of the Amazon Web Services Key Management Service key used to encrypt your data.
|
List<LogExport> |
logExports()
The types of logs the namespace can export.
|
List<String> |
logExportsAsStrings()
The types of logs the namespace can export.
|
String |
namespaceArn()
The Amazon Resource Name (ARN) associated with a namespace.
|
String |
namespaceId()
The unique identifier of a namespace.
|
String |
namespaceName()
The name of the namespace.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Namespace.Builder> |
serializableBuilderClass() |
NamespaceStatus |
status()
The status of the namespace.
|
String |
statusAsString()
The status of the namespace.
|
Namespace.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String adminUsername()
The username of the administrator for the first database created in the namespace.
public final Instant creationDate()
The date of when the namespace was created.
public final String dbName()
The name of the first database created in the namespace.
public final String defaultIamRoleArn()
The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace.
public final boolean hasIamRoles()
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<String> iamRoles()
A list of IAM roles to associate with the namespace.
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 hasIamRoles() method.
public final String kmsKeyId()
The ID of the Amazon Web Services Key Management Service key used to encrypt your data.
public final List<LogExport> logExports()
The types of logs the namespace can export. Available export types are User log, Connection log, and User activity log.
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 hasLogExports() method.
public final boolean hasLogExports()
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<String> logExportsAsStrings()
The types of logs the namespace can export. Available export types are User log, Connection log, and User activity log.
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 hasLogExports() method.
public final String namespaceArn()
The Amazon Resource Name (ARN) associated with a namespace.
public final String namespaceId()
The unique identifier of a namespace.
public final String namespaceName()
The name of the namespace. Must be between 3-64 alphanumeric characters in lowercase, and it cannot be a reserved word. A list of reserved words can be found in Reserved Words in the Amazon Redshift Database Developer Guide.
public final NamespaceStatus status()
The status of the namespace.
If the service returns an enum value that is not available in the current SDK version, status will
return NamespaceStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
NamespaceStatuspublic final String statusAsString()
The status of the namespace.
If the service returns an enum value that is not available in the current SDK version, status will
return NamespaceStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
NamespaceStatuspublic Namespace.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Namespace.Builder,Namespace>public static Namespace.Builder builder()
public static Class<? extends Namespace.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.