/*
* 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 iotfleetwise-2021-06-17.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.IoTFleetWise.Model
{
///
/// This is the response object from the GetRegisterAccountStatus operation.
///
public partial class GetRegisterAccountStatusResponse : AmazonWebServiceResponse
{
private RegistrationStatus _accountStatus;
private DateTime? _creationTime;
private string _customerAccountId;
private IamRegistrationResponse _iamRegistrationResponse;
private DateTime? _lastModificationTime;
private TimestreamRegistrationResponse _timestreamRegistrationResponse;
///
/// Gets and sets the property AccountStatus.
///
/// The status of registering your account and resources. The status can be one of:
///
/// -
///
///
REGISTRATION_SUCCESS - The Amazon Web Services resource is successfully
/// registered.
///
/// -
///
///
REGISTRATION_PENDING - Amazon Web Services IoT FleetWise is processing
/// the registration request. This process takes approximately five minutes to complete.
///
/// -
///
///
REGISTRATION_FAILURE - Amazon Web Services IoT FleetWise can't register
/// the AWS resource. Try again later.
///
///
///
[AWSProperty(Required=true)]
public RegistrationStatus AccountStatus
{
get { return this._accountStatus; }
set { this._accountStatus = value; }
}
// Check to see if AccountStatus property is set
internal bool IsSetAccountStatus()
{
return this._accountStatus != null;
}
///
/// Gets and sets the property CreationTime.
///
/// The time the account was registered, in seconds since epoch (January 1, 1970 at midnight
/// UTC time).
///
///
[AWSProperty(Required=true)]
public DateTime CreationTime
{
get { return this._creationTime.GetValueOrDefault(); }
set { this._creationTime = value; }
}
// Check to see if CreationTime property is set
internal bool IsSetCreationTime()
{
return this._creationTime.HasValue;
}
///
/// Gets and sets the property CustomerAccountId.
///
/// The unique ID of the Amazon Web Services account, provided at account creation.
///
///
[AWSProperty(Required=true)]
public string CustomerAccountId
{
get { return this._customerAccountId; }
set { this._customerAccountId = value; }
}
// Check to see if CustomerAccountId property is set
internal bool IsSetCustomerAccountId()
{
return this._customerAccountId != null;
}
///
/// Gets and sets the property IamRegistrationResponse.
///
/// Information about the registered IAM resources or errors, if any.
///
///
[AWSProperty(Required=true)]
public IamRegistrationResponse IamRegistrationResponse
{
get { return this._iamRegistrationResponse; }
set { this._iamRegistrationResponse = value; }
}
// Check to see if IamRegistrationResponse property is set
internal bool IsSetIamRegistrationResponse()
{
return this._iamRegistrationResponse != null;
}
///
/// Gets and sets the property LastModificationTime.
///
/// The time this registration was last updated, in seconds since epoch (January 1, 1970
/// at midnight UTC time).
///
///
[AWSProperty(Required=true)]
public DateTime LastModificationTime
{
get { return this._lastModificationTime.GetValueOrDefault(); }
set { this._lastModificationTime = value; }
}
// Check to see if LastModificationTime property is set
internal bool IsSetLastModificationTime()
{
return this._lastModificationTime.HasValue;
}
///
/// Gets and sets the property TimestreamRegistrationResponse.
///
/// Information about the registered Amazon Timestream resources or errors, if any.
///
///
public TimestreamRegistrationResponse TimestreamRegistrationResponse
{
get { return this._timestreamRegistrationResponse; }
set { this._timestreamRegistrationResponse = value; }
}
// Check to see if TimestreamRegistrationResponse property is set
internal bool IsSetTimestreamRegistrationResponse()
{
return this._timestreamRegistrationResponse != null;
}
}
}