/*
* 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 ec2-2016-11-15.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.EC2.Model
{
///
/// Details on the Elastic IP address transfer. For more information, see Transfer
/// Elastic IP addresses in the Amazon Virtual Private Cloud User Guide.
///
public partial class AddressTransfer
{
private AddressTransferStatus _addressTransferStatus;
private string _allocationId;
private string _publicIp;
private string _transferAccountId;
private DateTime? _transferOfferAcceptedTimestamp;
private DateTime? _transferOfferExpirationTimestamp;
///
/// Gets and sets the property AddressTransferStatus.
///
/// The Elastic IP address transfer status.
///
///
public AddressTransferStatus AddressTransferStatus
{
get { return this._addressTransferStatus; }
set { this._addressTransferStatus = value; }
}
// Check to see if AddressTransferStatus property is set
internal bool IsSetAddressTransferStatus()
{
return this._addressTransferStatus != null;
}
///
/// Gets and sets the property AllocationId.
///
/// The allocation ID of an Elastic IP address.
///
///
public string AllocationId
{
get { return this._allocationId; }
set { this._allocationId = value; }
}
// Check to see if AllocationId property is set
internal bool IsSetAllocationId()
{
return this._allocationId != null;
}
///
/// Gets and sets the property PublicIp.
///
/// The Elastic IP address being transferred.
///
///
public string PublicIp
{
get { return this._publicIp; }
set { this._publicIp = value; }
}
// Check to see if PublicIp property is set
internal bool IsSetPublicIp()
{
return this._publicIp != null;
}
///
/// Gets and sets the property TransferAccountId.
///
/// The ID of the account that you want to transfer the Elastic IP address to.
///
///
public string TransferAccountId
{
get { return this._transferAccountId; }
set { this._transferAccountId = value; }
}
// Check to see if TransferAccountId property is set
internal bool IsSetTransferAccountId()
{
return this._transferAccountId != null;
}
///
/// Gets and sets the property TransferOfferAcceptedTimestamp.
///
/// The timestamp when the Elastic IP address transfer was accepted.
///
///
public DateTime TransferOfferAcceptedTimestamp
{
get { return this._transferOfferAcceptedTimestamp.GetValueOrDefault(); }
set { this._transferOfferAcceptedTimestamp = value; }
}
// Check to see if TransferOfferAcceptedTimestamp property is set
internal bool IsSetTransferOfferAcceptedTimestamp()
{
return this._transferOfferAcceptedTimestamp.HasValue;
}
///
/// Gets and sets the property TransferOfferExpirationTimestamp.
///
/// The timestamp when the Elastic IP address transfer expired. When the source account
/// starts the transfer, the transfer account has seven hours to allocate the Elastic
/// IP address to complete the transfer, or the Elastic IP address will return to its
/// original owner.
///
///
public DateTime TransferOfferExpirationTimestamp
{
get { return this._transferOfferExpirationTimestamp.GetValueOrDefault(); }
set { this._transferOfferExpirationTimestamp = value; }
}
// Check to see if TransferOfferExpirationTimestamp property is set
internal bool IsSetTransferOfferExpirationTimestamp()
{
return this._transferOfferExpirationTimestamp.HasValue;
}
}
}