@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Namespace extends Object implements Serializable, Cloneable, StructuredPojo
A collection of database objects and users.
Constructor and Description |
---|
Namespace() |
Modifier and Type | Method and Description |
---|---|
Namespace |
clone() |
boolean |
equals(Object obj) |
String |
getAdminPasswordSecretArn()
The Amazon Resource Name (ARN) for the namespace's admin user credentials secret.
|
String |
getAdminPasswordSecretKmsKeyId()
The ID of the Key Management Service (KMS) key used to encrypt and store the namespace's admin credentials
secret.
|
String |
getAdminUsername()
The username of the administrator for the first database created in the namespace.
|
Date |
getCreationDate()
The date of when the namespace was created.
|
String |
getDbName()
The name of the first database created in the namespace.
|
String |
getDefaultIamRoleArn()
The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace.
|
List<String> |
getIamRoles()
A list of IAM roles to associate with the namespace.
|
String |
getKmsKeyId()
The ID of the Amazon Web Services Key Management Service key used to encrypt your data.
|
List<String> |
getLogExports()
The types of logs the namespace can export.
|
String |
getNamespaceArn()
The Amazon Resource Name (ARN) associated with a namespace.
|
String |
getNamespaceId()
The unique identifier of a namespace.
|
String |
getNamespaceName()
The name of the namespace.
|
String |
getStatus()
The status of the namespace.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAdminPasswordSecretArn(String adminPasswordSecretArn)
The Amazon Resource Name (ARN) for the namespace's admin user credentials secret.
|
void |
setAdminPasswordSecretKmsKeyId(String adminPasswordSecretKmsKeyId)
The ID of the Key Management Service (KMS) key used to encrypt and store the namespace's admin credentials
secret.
|
void |
setAdminUsername(String adminUsername)
The username of the administrator for the first database created in the namespace.
|
void |
setCreationDate(Date creationDate)
The date of when the namespace was created.
|
void |
setDbName(String dbName)
The name of the first database created in the namespace.
|
void |
setDefaultIamRoleArn(String defaultIamRoleArn)
The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace.
|
void |
setIamRoles(Collection<String> iamRoles)
A list of IAM roles to associate with the namespace.
|
void |
setKmsKeyId(String kmsKeyId)
The ID of the Amazon Web Services Key Management Service key used to encrypt your data.
|
void |
setLogExports(Collection<String> logExports)
The types of logs the namespace can export.
|
void |
setNamespaceArn(String namespaceArn)
The Amazon Resource Name (ARN) associated with a namespace.
|
void |
setNamespaceId(String namespaceId)
The unique identifier of a namespace.
|
void |
setNamespaceName(String namespaceName)
The name of the namespace.
|
void |
setStatus(String status)
The status of the namespace.
|
String |
toString()
Returns a string representation of this object.
|
Namespace |
withAdminPasswordSecretArn(String adminPasswordSecretArn)
The Amazon Resource Name (ARN) for the namespace's admin user credentials secret.
|
Namespace |
withAdminPasswordSecretKmsKeyId(String adminPasswordSecretKmsKeyId)
The ID of the Key Management Service (KMS) key used to encrypt and store the namespace's admin credentials
secret.
|
Namespace |
withAdminUsername(String adminUsername)
The username of the administrator for the first database created in the namespace.
|
Namespace |
withCreationDate(Date creationDate)
The date of when the namespace was created.
|
Namespace |
withDbName(String dbName)
The name of the first database created in the namespace.
|
Namespace |
withDefaultIamRoleArn(String defaultIamRoleArn)
The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace.
|
Namespace |
withIamRoles(Collection<String> iamRoles)
A list of IAM roles to associate with the namespace.
|
Namespace |
withIamRoles(String... iamRoles)
A list of IAM roles to associate with the namespace.
|
Namespace |
withKmsKeyId(String kmsKeyId)
The ID of the Amazon Web Services Key Management Service key used to encrypt your data.
|
Namespace |
withLogExports(Collection<String> logExports)
The types of logs the namespace can export.
|
Namespace |
withLogExports(LogExport... logExports)
The types of logs the namespace can export.
|
Namespace |
withLogExports(String... logExports)
The types of logs the namespace can export.
|
Namespace |
withNamespaceArn(String namespaceArn)
The Amazon Resource Name (ARN) associated with a namespace.
|
Namespace |
withNamespaceId(String namespaceId)
The unique identifier of a namespace.
|
Namespace |
withNamespaceName(String namespaceName)
The name of the namespace.
|
Namespace |
withStatus(NamespaceStatus status)
The status of the namespace.
|
Namespace |
withStatus(String status)
The status of the namespace.
|
public void setAdminPasswordSecretArn(String adminPasswordSecretArn)
The Amazon Resource Name (ARN) for the namespace's admin user credentials secret.
adminPasswordSecretArn
- The Amazon Resource Name (ARN) for the namespace's admin user credentials secret.public String getAdminPasswordSecretArn()
The Amazon Resource Name (ARN) for the namespace's admin user credentials secret.
public Namespace withAdminPasswordSecretArn(String adminPasswordSecretArn)
The Amazon Resource Name (ARN) for the namespace's admin user credentials secret.
adminPasswordSecretArn
- The Amazon Resource Name (ARN) for the namespace's admin user credentials secret.public void setAdminPasswordSecretKmsKeyId(String adminPasswordSecretKmsKeyId)
The ID of the Key Management Service (KMS) key used to encrypt and store the namespace's admin credentials secret.
adminPasswordSecretKmsKeyId
- The ID of the Key Management Service (KMS) key used to encrypt and store the namespace's admin credentials
secret.public String getAdminPasswordSecretKmsKeyId()
The ID of the Key Management Service (KMS) key used to encrypt and store the namespace's admin credentials secret.
public Namespace withAdminPasswordSecretKmsKeyId(String adminPasswordSecretKmsKeyId)
The ID of the Key Management Service (KMS) key used to encrypt and store the namespace's admin credentials secret.
adminPasswordSecretKmsKeyId
- The ID of the Key Management Service (KMS) key used to encrypt and store the namespace's admin credentials
secret.public void setAdminUsername(String adminUsername)
The username of the administrator for the first database created in the namespace.
adminUsername
- The username of the administrator for the first database created in the namespace.public String getAdminUsername()
The username of the administrator for the first database created in the namespace.
public Namespace withAdminUsername(String adminUsername)
The username of the administrator for the first database created in the namespace.
adminUsername
- The username of the administrator for the first database created in the namespace.public void setCreationDate(Date creationDate)
The date of when the namespace was created.
creationDate
- The date of when the namespace was created.public Date getCreationDate()
The date of when the namespace was created.
public Namespace withCreationDate(Date creationDate)
The date of when the namespace was created.
creationDate
- The date of when the namespace was created.public void setDbName(String dbName)
The name of the first database created in the namespace.
dbName
- The name of the first database created in the namespace.public String getDbName()
The name of the first database created in the namespace.
public Namespace withDbName(String dbName)
The name of the first database created in the namespace.
dbName
- The name of the first database created in the namespace.public void setDefaultIamRoleArn(String defaultIamRoleArn)
The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace.
defaultIamRoleArn
- The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace.public String getDefaultIamRoleArn()
The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace.
public Namespace withDefaultIamRoleArn(String defaultIamRoleArn)
The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace.
defaultIamRoleArn
- The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace.public List<String> getIamRoles()
A list of IAM roles to associate with the namespace.
public void setIamRoles(Collection<String> iamRoles)
A list of IAM roles to associate with the namespace.
iamRoles
- A list of IAM roles to associate with the namespace.public Namespace withIamRoles(String... iamRoles)
A list of IAM roles to associate with the namespace.
NOTE: This method appends the values to the existing list (if any). Use
setIamRoles(java.util.Collection)
or withIamRoles(java.util.Collection)
if you want to override
the existing values.
iamRoles
- A list of IAM roles to associate with the namespace.public Namespace withIamRoles(Collection<String> iamRoles)
A list of IAM roles to associate with the namespace.
iamRoles
- A list of IAM roles to associate with the namespace.public void setKmsKeyId(String kmsKeyId)
The ID of the Amazon Web Services Key Management Service key used to encrypt your data.
kmsKeyId
- The ID of the Amazon Web Services Key Management Service key used to encrypt your data.public String getKmsKeyId()
The ID of the Amazon Web Services Key Management Service key used to encrypt your data.
public Namespace withKmsKeyId(String kmsKeyId)
The ID of the Amazon Web Services Key Management Service key used to encrypt your data.
kmsKeyId
- The ID of the Amazon Web Services Key Management Service key used to encrypt your data.public List<String> getLogExports()
The types of logs the namespace can export. Available export types are User log, Connection log, and User activity log.
LogExport
public void setLogExports(Collection<String> logExports)
The types of logs the namespace can export. Available export types are User log, Connection log, and User activity log.
logExports
- The types of logs the namespace can export. Available export types are User log, Connection log, and User
activity log.LogExport
public Namespace withLogExports(String... logExports)
The types of logs the namespace can export. Available export types are User log, Connection log, and User activity log.
NOTE: This method appends the values to the existing list (if any). Use
setLogExports(java.util.Collection)
or withLogExports(java.util.Collection)
if you want to
override the existing values.
logExports
- The types of logs the namespace can export. Available export types are User log, Connection log, and User
activity log.LogExport
public Namespace withLogExports(Collection<String> logExports)
The types of logs the namespace can export. Available export types are User log, Connection log, and User activity log.
logExports
- The types of logs the namespace can export. Available export types are User log, Connection log, and User
activity log.LogExport
public Namespace withLogExports(LogExport... logExports)
The types of logs the namespace can export. Available export types are User log, Connection log, and User activity log.
logExports
- The types of logs the namespace can export. Available export types are User log, Connection log, and User
activity log.LogExport
public void setNamespaceArn(String namespaceArn)
The Amazon Resource Name (ARN) associated with a namespace.
namespaceArn
- The Amazon Resource Name (ARN) associated with a namespace.public String getNamespaceArn()
The Amazon Resource Name (ARN) associated with a namespace.
public Namespace withNamespaceArn(String namespaceArn)
The Amazon Resource Name (ARN) associated with a namespace.
namespaceArn
- The Amazon Resource Name (ARN) associated with a namespace.public void setNamespaceId(String namespaceId)
The unique identifier of a namespace.
namespaceId
- The unique identifier of a namespace.public String getNamespaceId()
The unique identifier of a namespace.
public Namespace withNamespaceId(String namespaceId)
The unique identifier of a namespace.
namespaceId
- The unique identifier of a namespace.public void setNamespaceName(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.
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 String getNamespaceName()
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 Namespace withNamespaceName(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.
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 void setStatus(String status)
The status of the namespace.
status
- The status of the namespace.NamespaceStatus
public String getStatus()
The status of the namespace.
NamespaceStatus
public Namespace withStatus(String status)
The status of the namespace.
status
- The status of the namespace.NamespaceStatus
public Namespace withStatus(NamespaceStatus status)
The status of the namespace.
status
- The status of the namespace.NamespaceStatus
public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.