/*
* 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 appmesh-2019-01-25.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.AppMesh.Model
{
///
/// An object that represents metadata for a resource.
///
public partial class ResourceMetadata
{
private string _arn;
private DateTime? _createdAt;
private DateTime? _lastUpdatedAt;
private string _meshOwner;
private string _resourceOwner;
private string _uid;
private long? _version;
///
/// Gets and sets the property Arn.
///
/// The full Amazon Resource Name (ARN) for the resource.
///
///
[AWSProperty(Required=true)]
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 CreatedAt.
///
/// The Unix epoch timestamp in seconds for when the resource was created.
///
///
[AWSProperty(Required=true)]
public DateTime CreatedAt
{
get { return this._createdAt.GetValueOrDefault(); }
set { this._createdAt = value; }
}
// Check to see if CreatedAt property is set
internal bool IsSetCreatedAt()
{
return this._createdAt.HasValue;
}
///
/// Gets and sets the property LastUpdatedAt.
///
/// The Unix epoch timestamp in seconds for when the resource was last updated.
///
///
[AWSProperty(Required=true)]
public DateTime LastUpdatedAt
{
get { return this._lastUpdatedAt.GetValueOrDefault(); }
set { this._lastUpdatedAt = value; }
}
// Check to see if LastUpdatedAt property is set
internal bool IsSetLastUpdatedAt()
{
return this._lastUpdatedAt.HasValue;
}
///
/// Gets and sets the property MeshOwner.
///
/// The Amazon Web Services IAM account ID of the service mesh owner. If the account ID
/// is not your own, then it's the ID of the account that shared the mesh with your account.
/// For more information about mesh sharing, see Working
/// with shared meshes.
///
///
[AWSProperty(Required=true, Min=12, Max=12)]
public string MeshOwner
{
get { return this._meshOwner; }
set { this._meshOwner = value; }
}
// Check to see if MeshOwner property is set
internal bool IsSetMeshOwner()
{
return this._meshOwner != null;
}
///
/// Gets and sets the property ResourceOwner.
///
/// The Amazon Web Services IAM account ID of the resource owner. If the account ID is
/// not your own, then it's the ID of the mesh owner or of another account that the mesh
/// is shared with. For more information about mesh sharing, see Working
/// with shared meshes.
///
///
[AWSProperty(Required=true, Min=12, Max=12)]
public string ResourceOwner
{
get { return this._resourceOwner; }
set { this._resourceOwner = value; }
}
// Check to see if ResourceOwner property is set
internal bool IsSetResourceOwner()
{
return this._resourceOwner != null;
}
///
/// Gets and sets the property Uid.
///
/// The unique identifier for the resource.
///
///
[AWSProperty(Required=true)]
public string Uid
{
get { return this._uid; }
set { this._uid = value; }
}
// Check to see if Uid property is set
internal bool IsSetUid()
{
return this._uid != null;
}
///
/// Gets and sets the property Version.
///
/// The version of the resource. Resources are created at version 1, and this version
/// is incremented each time that they're updated.
///
///
[AWSProperty(Required=true)]
public long Version
{
get { return this._version.GetValueOrDefault(); }
set { this._version = value; }
}
// Check to see if Version property is set
internal bool IsSetVersion()
{
return this._version.HasValue;
}
}
}