/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.redshiftserverless.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateNamespaceRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The password of the administrator for the first database created in the namespace. *
*/ private String adminUserPassword; /** ** The username of the administrator for the first database created in the namespace. *
*/ private String adminUsername; /** ** The name of the first database created in the namespace. *
*/ private String dbName; /** ** The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace. *
*/ private String defaultIamRoleArn; /** ** A list of IAM roles to associate with the namespace. *
*/ private java.util.List* The ID of the Amazon Web Services Key Management Service key used to encrypt your data. *
*/ private String kmsKeyId; /** *
* The types of logs the namespace can export. Available export types are userlog
,
* connectionlog
, and useractivitylog
.
*
* The name of the namespace. *
*/ private String namespaceName; /** ** A list of tag instances. *
*/ private java.util.List* The password of the administrator for the first database created in the namespace. *
* * @param adminUserPassword * The password of the administrator for the first database created in the namespace. */ public void setAdminUserPassword(String adminUserPassword) { this.adminUserPassword = adminUserPassword; } /** ** The password of the administrator for the first database created in the namespace. *
* * @return The password of the administrator for the first database created in the namespace. */ public String getAdminUserPassword() { return this.adminUserPassword; } /** ** The password of the administrator for the first database created in the namespace. *
* * @param adminUserPassword * The password of the administrator for the first database created in the namespace. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateNamespaceRequest withAdminUserPassword(String adminUserPassword) { setAdminUserPassword(adminUserPassword); return this; } /** ** The username of the administrator for the first database created in the namespace. *
* * @param adminUsername * The username of the administrator for the first database created in the namespace. */ public void setAdminUsername(String adminUsername) { this.adminUsername = adminUsername; } /** ** The username of the administrator for the first database created in the namespace. *
* * @return The username of the administrator for the first database created in the namespace. */ public String getAdminUsername() { return this.adminUsername; } /** ** The username of the administrator for the first database created in the namespace. *
* * @param adminUsername * The username of the administrator for the first database created in the namespace. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateNamespaceRequest withAdminUsername(String adminUsername) { setAdminUsername(adminUsername); return this; } /** ** The name of the first database created in the namespace. *
* * @param dbName * The name of the first database created in the namespace. */ public void setDbName(String dbName) { this.dbName = dbName; } /** ** The name of the first database created in the namespace. *
* * @return The name of the first database created in the namespace. */ public String getDbName() { return this.dbName; } /** ** The name of the first database created in the namespace. *
* * @param dbName * The name of the first database created in the namespace. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateNamespaceRequest withDbName(String dbName) { setDbName(dbName); return this; } /** ** The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace. *
* * @param defaultIamRoleArn * The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace. */ public void setDefaultIamRoleArn(String defaultIamRoleArn) { this.defaultIamRoleArn = defaultIamRoleArn; } /** ** The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace. *
* * @return The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace. */ public String getDefaultIamRoleArn() { return this.defaultIamRoleArn; } /** ** The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace. *
* * @param defaultIamRoleArn * The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateNamespaceRequest withDefaultIamRoleArn(String defaultIamRoleArn) { setDefaultIamRoleArn(defaultIamRoleArn); return this; } /** ** A list of IAM roles to associate with the namespace. *
* * @return A list of IAM roles to associate with the namespace. */ public java.util.List* A list of IAM roles to associate with the namespace. *
* * @param iamRoles * A list of IAM roles to associate with the namespace. */ public void setIamRoles(java.util.Collection* A list of IAM roles to associate with the namespace. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setIamRoles(java.util.Collection)} or {@link #withIamRoles(java.util.Collection)} if you want to override * the existing values. *
* * @param iamRoles * A list of IAM roles to associate with the namespace. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateNamespaceRequest withIamRoles(String... iamRoles) { if (this.iamRoles == null) { setIamRoles(new java.util.ArrayList* A list of IAM roles to associate with the namespace. *
* * @param iamRoles * A list of IAM roles to associate with the namespace. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateNamespaceRequest withIamRoles(java.util.Collection* The ID of the Amazon Web Services Key Management Service key used to encrypt your data. *
* * @param kmsKeyId * The ID of the Amazon Web Services Key Management Service key used to encrypt your data. */ public void setKmsKeyId(String kmsKeyId) { this.kmsKeyId = kmsKeyId; } /** ** The ID of the Amazon Web Services Key Management Service key used to encrypt your data. *
* * @return The ID of the Amazon Web Services Key Management Service key used to encrypt your data. */ public String getKmsKeyId() { return this.kmsKeyId; } /** ** The ID of the Amazon Web Services Key Management Service key used to encrypt your data. *
* * @param kmsKeyId * The ID of the Amazon Web Services Key Management Service key used to encrypt your data. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateNamespaceRequest withKmsKeyId(String kmsKeyId) { setKmsKeyId(kmsKeyId); return this; } /** *
* The types of logs the namespace can export. Available export types are userlog
,
* connectionlog
, and useractivitylog
.
*
userlog
,
* connectionlog
, and useractivitylog
.
* @see LogExport
*/
public java.util.List
* The types of logs the namespace can export. Available export types are userlog
,
* connectionlog
, and useractivitylog
.
*
userlog
,
* connectionlog
, and useractivitylog
.
* @see LogExport
*/
public void setLogExports(java.util.Collection
* The types of logs the namespace can export. Available export types are userlog
,
* connectionlog
, and useractivitylog
.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setLogExports(java.util.Collection)} or {@link #withLogExports(java.util.Collection)} if you want to * override the existing values. *
* * @param logExports * The types of logs the namespace can export. Available export types areuserlog
,
* connectionlog
, and useractivitylog
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see LogExport
*/
public CreateNamespaceRequest withLogExports(String... logExports) {
if (this.logExports == null) {
setLogExports(new java.util.ArrayList
* The types of logs the namespace can export. Available export types are userlog
,
* connectionlog
, and useractivitylog
.
*
userlog
,
* connectionlog
, and useractivitylog
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see LogExport
*/
public CreateNamespaceRequest withLogExports(java.util.Collection
* The types of logs the namespace can export. Available export types are userlog
,
* connectionlog
, and useractivitylog
.
*
userlog
,
* connectionlog
, and useractivitylog
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see LogExport
*/
public CreateNamespaceRequest withLogExports(LogExport... logExports) {
java.util.ArrayList* The name of the namespace. *
* * @param namespaceName * The name of the namespace. */ public void setNamespaceName(String namespaceName) { this.namespaceName = namespaceName; } /** ** The name of the namespace. *
* * @return The name of the namespace. */ public String getNamespaceName() { return this.namespaceName; } /** ** The name of the namespace. *
* * @param namespaceName * The name of the namespace. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateNamespaceRequest withNamespaceName(String namespaceName) { setNamespaceName(namespaceName); return this; } /** ** A list of tag instances. *
* * @return A list of tag instances. */ public java.util.List* A list of tag instances. *
* * @param tags * A list of tag instances. */ public void setTags(java.util.Collection* A list of tag instances. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. *
* * @param tags * A list of tag instances. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateNamespaceRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList* A list of tag instances. *
* * @param tags * A list of tag instances. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateNamespaceRequest withTags(java.util.Collection