/*
* 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 managedblockchain-2018-09-24.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.ManagedBlockchain.Model
{
///
/// Network configuration properties.
///
public partial class Network
{
private string _arn;
private DateTime? _creationDate;
private string _description;
private Framework _framework;
private NetworkFrameworkAttributes _frameworkAttributes;
private string _frameworkVersion;
private string _id;
private string _name;
private NetworkStatus _status;
private Dictionary _tags = new Dictionary();
private VotingPolicy _votingPolicy;
private string _vpcEndpointServiceName;
///
/// Gets and sets the property Arn.
///
/// The Amazon Resource Name (ARN) of the network. For more information about ARNs and
/// their format, see Amazon
/// Resource Names (ARNs) in the Amazon Web Services General Reference.
///
///
[AWSProperty(Min=1, Max=1011)]
public string Arn
{
get { return this._arn; }
set { this._arn = value; }
}
// Check to see if Arn property is set
internal bool IsSetArn()
{
return this._arn != null;
}
///
/// Gets and sets the property CreationDate.
///
/// The date and time that the network 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 Description.
///
/// Attributes of the blockchain framework for the network.
///
///
[AWSProperty(Max=128)]
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
///
/// Gets and sets the property Framework.
///
/// The blockchain framework that the network uses.
///
///
public Framework Framework
{
get { return this._framework; }
set { this._framework = value; }
}
// Check to see if Framework property is set
internal bool IsSetFramework()
{
return this._framework != null;
}
///
/// Gets and sets the property FrameworkAttributes.
///
/// Attributes of the blockchain framework that the network uses.
///
///
public NetworkFrameworkAttributes FrameworkAttributes
{
get { return this._frameworkAttributes; }
set { this._frameworkAttributes = value; }
}
// Check to see if FrameworkAttributes property is set
internal bool IsSetFrameworkAttributes()
{
return this._frameworkAttributes != null;
}
///
/// Gets and sets the property FrameworkVersion.
///
/// The version of the blockchain framework that the network uses.
///
///
[AWSProperty(Min=1, Max=8)]
public string FrameworkVersion
{
get { return this._frameworkVersion; }
set { this._frameworkVersion = value; }
}
// Check to see if FrameworkVersion property is set
internal bool IsSetFrameworkVersion()
{
return this._frameworkVersion != null;
}
///
/// Gets and sets the property Id.
///
/// The unique identifier of the network.
///
///
[AWSProperty(Min=1, Max=32)]
public string Id
{
get { return this._id; }
set { this._id = value; }
}
// Check to see if Id property is set
internal bool IsSetId()
{
return this._id != null;
}
///
/// Gets and sets the property Name.
///
/// The name of the network.
///
///
[AWSProperty(Min=1, Max=64)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
///
/// Gets and sets the property Status.
///
/// The current status of the network.
///
///
public NetworkStatus Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
///
/// Gets and sets the property Tags.
///
/// Tags assigned to the network. Each tag consists of a key and optional value.
///
///
///
/// For more information about tags, see Tagging
/// Resources in the Amazon Managed Blockchain Ethereum Developer Guide, or
/// Tagging
/// Resources in the Amazon Managed Blockchain Hyperledger Fabric Developer Guide.
///
///
[AWSProperty(Min=0, Max=200)]
public Dictionary 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;
}
///
/// Gets and sets the property VotingPolicy.
///
/// The voting rules that the network uses to decide if a proposal is accepted.
///
///
public VotingPolicy VotingPolicy
{
get { return this._votingPolicy; }
set { this._votingPolicy = value; }
}
// Check to see if VotingPolicy property is set
internal bool IsSetVotingPolicy()
{
return this._votingPolicy != null;
}
///
/// Gets and sets the property VpcEndpointServiceName.
///
/// The VPC endpoint service name of the VPC endpoint service of the network. Members
/// use the VPC endpoint service name to create a VPC endpoint to access network resources.
///
///
public string VpcEndpointServiceName
{
get { return this._vpcEndpointServiceName; }
set { this._vpcEndpointServiceName = value; }
}
// Check to see if VpcEndpointServiceName property is set
internal bool IsSetVpcEndpointServiceName()
{
return this._vpcEndpointServiceName != null;
}
}
}