/*
* Copyright 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.
*/
/*
* Do not modify this file. This file is generated from the redshift-serverless-2021-04-21.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.RedshiftServerless.Model
{
///
/// Container for the parameters to the CreateNamespace operation.
/// Creates a namespace in Amazon Redshift Serverless.
///
public partial class CreateNamespaceRequest : AmazonRedshiftServerlessRequest
{
private string _adminUsername;
private string _adminUserPassword;
private string _dbName;
private string _defaultIamRoleArn;
private List _iamRoles = new List();
private string _kmsKeyId;
private List _logExports = new List();
private string _namespaceName;
private List _tags = new List();
///
/// Gets and sets the property AdminUsername.
///
/// The username of the administrator for the first database created in the namespace.
///
///
[AWSProperty(Sensitive=true)]
public string AdminUsername
{
get { return this._adminUsername; }
set { this._adminUsername = value; }
}
// Check to see if AdminUsername property is set
internal bool IsSetAdminUsername()
{
return this._adminUsername != null;
}
///
/// Gets and sets the property AdminUserPassword.
///
/// The password of the administrator for the first database created in the namespace.
///
///
[AWSProperty(Sensitive=true)]
public string AdminUserPassword
{
get { return this._adminUserPassword; }
set { this._adminUserPassword = value; }
}
// Check to see if AdminUserPassword property is set
internal bool IsSetAdminUserPassword()
{
return this._adminUserPassword != null;
}
///
/// Gets and sets the property DbName.
///
/// The name of the first database created in the namespace.
///
///
public string DbName
{
get { return this._dbName; }
set { this._dbName = value; }
}
// Check to see if DbName property is set
internal bool IsSetDbName()
{
return this._dbName != null;
}
///
/// Gets and sets the property DefaultIamRoleArn.
///
/// The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace.
///
///
public string DefaultIamRoleArn
{
get { return this._defaultIamRoleArn; }
set { this._defaultIamRoleArn = value; }
}
// Check to see if DefaultIamRoleArn property is set
internal bool IsSetDefaultIamRoleArn()
{
return this._defaultIamRoleArn != null;
}
///
/// Gets and sets the property IamRoles.
///
/// A list of IAM roles to associate with the namespace.
///
///
public List IamRoles
{
get { return this._iamRoles; }
set { this._iamRoles = value; }
}
// Check to see if IamRoles property is set
internal bool IsSetIamRoles()
{
return this._iamRoles != null && this._iamRoles.Count > 0;
}
///
/// Gets and sets the property KmsKeyId.
///
/// The ID of the Amazon Web Services Key Management Service key used to encrypt your
/// data.
///
///
public string KmsKeyId
{
get { return this._kmsKeyId; }
set { this._kmsKeyId = value; }
}
// Check to see if KmsKeyId property is set
internal bool IsSetKmsKeyId()
{
return this._kmsKeyId != null;
}
///
/// Gets and sets the property LogExports.
///
/// The types of logs the namespace can export. Available export types are userlog
,
/// connectionlog
, and useractivitylog
.
///
///
[AWSProperty(Min=0, Max=16)]
public List LogExports
{
get { return this._logExports; }
set { this._logExports = value; }
}
// Check to see if LogExports property is set
internal bool IsSetLogExports()
{
return this._logExports != null && this._logExports.Count > 0;
}
///
/// Gets and sets the property NamespaceName.
///
/// The name of the namespace.
///
///
[AWSProperty(Required=true, Min=3, Max=64)]
public string NamespaceName
{
get { return this._namespaceName; }
set { this._namespaceName = value; }
}
// Check to see if NamespaceName property is set
internal bool IsSetNamespaceName()
{
return this._namespaceName != null;
}
///
/// Gets and sets the property Tags.
///
/// A list of tag instances.
///
///
[AWSProperty(Min=0, Max=200)]
public List Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
}
}