/*
* 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
{
///
/// A collection of database objects and users.
///
public partial class Namespace
{
private string _adminUsername;
private DateTime? _creationDate;
private string _dbName;
private string _defaultIamRoleArn;
private List _iamRoles = new List();
private string _kmsKeyId;
private List _logExports = new List();
private string _namespaceArn;
private string _namespaceId;
private string _namespaceName;
private NamespaceStatus _status;
///
/// 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 CreationDate.
///
/// The date of when the namespace was created.
///
///
public DateTime CreationDate
{
get { return this._creationDate.GetValueOrDefault(); }
set { this._creationDate = value; }
}
// Check to see if CreationDate property is set
internal bool IsSetCreationDate()
{
return this._creationDate.HasValue;
}
///
/// 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 User log, Connection
/// log, and User activity log.
///
///
[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 NamespaceArn.
///
/// The Amazon Resource Name (ARN) associated with a namespace.
///
///
public string NamespaceArn
{
get { return this._namespaceArn; }
set { this._namespaceArn = value; }
}
// Check to see if NamespaceArn property is set
internal bool IsSetNamespaceArn()
{
return this._namespaceArn != null;
}
///
/// Gets and sets the property NamespaceId.
///
/// The unique identifier of a namespace.
///
///
public string NamespaceId
{
get { return this._namespaceId; }
set { this._namespaceId = value; }
}
// Check to see if NamespaceId property is set
internal bool IsSetNamespaceId()
{
return this._namespaceId != null;
}
///
/// Gets and sets the property 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.
///
///
[AWSProperty(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 Status.
///
/// The status of the namespace.
///
///
public NamespaceStatus Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
}
}