/*
* Copyright 2018-2023 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.
*/
package com.amazonaws.services.iotfleetwise.model;
import java.io.Serializable;
import javax.annotation.Generated;
/**
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class GetRegisterAccountStatusResult extends com.amazonaws.AmazonWebServiceResult
* The unique ID of the Amazon Web Services account, provided at account creation.
*
* The status of registering your account and resources. The status can be one of:
*
*
*
*
* Information about the registered Amazon Timestream resources or errors, if any.
*
* Information about the registered IAM resources or errors, if any.
*
* The time the account was registered, in seconds since epoch (January 1, 1970 at midnight UTC time).
*
* The time this registration was last updated, in seconds since epoch (January 1, 1970 at midnight UTC time).
*
* The unique ID of the Amazon Web Services account, provided at account creation.
*
* The unique ID of the Amazon Web Services account, provided at account creation.
*
* The unique ID of the Amazon Web Services account, provided at account creation.
*
* The status of registering your account and resources. The status can be one of:
*
*
*
*
*
*/
private String accountStatus;
/**
* 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.
*
*
*
* @param 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* Information about the registered Amazon Timestream resources or errors, if any. *
* * @param timestreamRegistrationResponse * Information about the registered Amazon Timestream resources or errors, if any. */ public void setTimestreamRegistrationResponse(TimestreamRegistrationResponse timestreamRegistrationResponse) { this.timestreamRegistrationResponse = timestreamRegistrationResponse; } /** ** Information about the registered Amazon Timestream resources or errors, if any. *
* * @return Information about the registered Amazon Timestream resources or errors, if any. */ public TimestreamRegistrationResponse getTimestreamRegistrationResponse() { return this.timestreamRegistrationResponse; } /** ** Information about the registered Amazon Timestream resources or errors, if any. *
* * @param timestreamRegistrationResponse * Information about the registered Amazon Timestream resources or errors, if any. * @return Returns a reference to this object so that method calls can be chained together. */ public GetRegisterAccountStatusResult withTimestreamRegistrationResponse(TimestreamRegistrationResponse timestreamRegistrationResponse) { setTimestreamRegistrationResponse(timestreamRegistrationResponse); return this; } /** ** Information about the registered IAM resources or errors, if any. *
* * @param iamRegistrationResponse * Information about the registered IAM resources or errors, if any. */ public void setIamRegistrationResponse(IamRegistrationResponse iamRegistrationResponse) { this.iamRegistrationResponse = iamRegistrationResponse; } /** ** Information about the registered IAM resources or errors, if any. *
* * @return Information about the registered IAM resources or errors, if any. */ public IamRegistrationResponse getIamRegistrationResponse() { return this.iamRegistrationResponse; } /** ** Information about the registered IAM resources or errors, if any. *
* * @param iamRegistrationResponse * Information about the registered IAM resources or errors, if any. * @return Returns a reference to this object so that method calls can be chained together. */ public GetRegisterAccountStatusResult withIamRegistrationResponse(IamRegistrationResponse iamRegistrationResponse) { setIamRegistrationResponse(iamRegistrationResponse); return this; } /** ** The time the account was registered, in seconds since epoch (January 1, 1970 at midnight UTC time). *
* * @param creationTime * The time the account was registered, in seconds since epoch (January 1, 1970 at midnight UTC time). */ public void setCreationTime(java.util.Date creationTime) { this.creationTime = creationTime; } /** ** The time the account was registered, in seconds since epoch (January 1, 1970 at midnight UTC time). *
* * @return The time the account was registered, in seconds since epoch (January 1, 1970 at midnight UTC time). */ public java.util.Date getCreationTime() { return this.creationTime; } /** ** The time the account was registered, in seconds since epoch (January 1, 1970 at midnight UTC time). *
* * @param creationTime * The time the account was registered, in seconds since epoch (January 1, 1970 at midnight UTC time). * @return Returns a reference to this object so that method calls can be chained together. */ public GetRegisterAccountStatusResult withCreationTime(java.util.Date creationTime) { setCreationTime(creationTime); return this; } /** ** The time this registration was last updated, in seconds since epoch (January 1, 1970 at midnight UTC time). *
* * @param lastModificationTime * The time this registration was last updated, in seconds since epoch (January 1, 1970 at midnight UTC * time). */ public void setLastModificationTime(java.util.Date lastModificationTime) { this.lastModificationTime = lastModificationTime; } /** ** The time this registration was last updated, in seconds since epoch (January 1, 1970 at midnight UTC time). *
* * @return The time this registration was last updated, in seconds since epoch (January 1, 1970 at midnight UTC * time). */ public java.util.Date getLastModificationTime() { return this.lastModificationTime; } /** ** The time this registration was last updated, in seconds since epoch (January 1, 1970 at midnight UTC time). *
* * @param lastModificationTime * The time this registration was last updated, in seconds since epoch (January 1, 1970 at midnight UTC * time). * @return Returns a reference to this object so that method calls can be chained together. */ public GetRegisterAccountStatusResult withLastModificationTime(java.util.Date lastModificationTime) { setLastModificationTime(lastModificationTime); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getCustomerAccountId() != null) sb.append("CustomerAccountId: ").append(getCustomerAccountId()).append(","); if (getAccountStatus() != null) sb.append("AccountStatus: ").append(getAccountStatus()).append(","); if (getTimestreamRegistrationResponse() != null) sb.append("TimestreamRegistrationResponse: ").append(getTimestreamRegistrationResponse()).append(","); if (getIamRegistrationResponse() != null) sb.append("IamRegistrationResponse: ").append(getIamRegistrationResponse()).append(","); if (getCreationTime() != null) sb.append("CreationTime: ").append(getCreationTime()).append(","); if (getLastModificationTime() != null) sb.append("LastModificationTime: ").append(getLastModificationTime()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetRegisterAccountStatusResult == false) return false; GetRegisterAccountStatusResult other = (GetRegisterAccountStatusResult) obj; if (other.getCustomerAccountId() == null ^ this.getCustomerAccountId() == null) return false; if (other.getCustomerAccountId() != null && other.getCustomerAccountId().equals(this.getCustomerAccountId()) == false) return false; if (other.getAccountStatus() == null ^ this.getAccountStatus() == null) return false; if (other.getAccountStatus() != null && other.getAccountStatus().equals(this.getAccountStatus()) == false) return false; if (other.getTimestreamRegistrationResponse() == null ^ this.getTimestreamRegistrationResponse() == null) return false; if (other.getTimestreamRegistrationResponse() != null && other.getTimestreamRegistrationResponse().equals(this.getTimestreamRegistrationResponse()) == false) return false; if (other.getIamRegistrationResponse() == null ^ this.getIamRegistrationResponse() == null) return false; if (other.getIamRegistrationResponse() != null && other.getIamRegistrationResponse().equals(this.getIamRegistrationResponse()) == false) return false; if (other.getCreationTime() == null ^ this.getCreationTime() == null) return false; if (other.getCreationTime() != null && other.getCreationTime().equals(this.getCreationTime()) == false) return false; if (other.getLastModificationTime() == null ^ this.getLastModificationTime() == null) return false; if (other.getLastModificationTime() != null && other.getLastModificationTime().equals(this.getLastModificationTime()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCustomerAccountId() == null) ? 0 : getCustomerAccountId().hashCode()); hashCode = prime * hashCode + ((getAccountStatus() == null) ? 0 : getAccountStatus().hashCode()); hashCode = prime * hashCode + ((getTimestreamRegistrationResponse() == null) ? 0 : getTimestreamRegistrationResponse().hashCode()); hashCode = prime * hashCode + ((getIamRegistrationResponse() == null) ? 0 : getIamRegistrationResponse().hashCode()); hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode()); hashCode = prime * hashCode + ((getLastModificationTime() == null) ? 0 : getLastModificationTime().hashCode()); return hashCode; } @Override public GetRegisterAccountStatusResult clone() { try { return (GetRegisterAccountStatusResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }