/* * Copyright 2010-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.chimesdkidentity.model; import java.io.Serializable; /** *
* The name and ARN of the admin for the AppInstance
.
*
* The AppInstanceAdmin
data.
*
* The ARN of the AppInstance
for which the user is an
* administrator.
*
* Constraints:
* Length: 5 - 1600
* Pattern:
* arn:[a-z0-9-\.]{1,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:
* [a-z0-9-\.]{0,63}:[^/].{0,1023}
*/
private String appInstanceArn;
/**
*
* The time at which an administrator was created. *
*/ private java.util.Date createdTimestamp; /** *
* The AppInstanceAdmin
data.
*
* The AppInstanceAdmin
data.
*
* The AppInstanceAdmin
data.
*
* The AppInstanceAdmin
data.
*
* The AppInstanceAdmin
data.
*
* Returns a reference to this object so that method calls can be chained * together. * * @param admin
* The AppInstanceAdmin
data.
*
* The ARN of the AppInstance
for which the user is an
* administrator.
*
* Constraints:
* Length: 5 - 1600
* Pattern:
* arn:[a-z0-9-\.]{1,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:
* [a-z0-9-\.]{0,63}:[^/].{0,1023}
*
* @return
* The ARN of the AppInstance
for which the user is an
* administrator.
*
* The ARN of the AppInstance
for which the user is an
* administrator.
*
* Constraints:
* Length: 5 - 1600
* Pattern:
* arn:[a-z0-9-\.]{1,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:
* [a-z0-9-\.]{0,63}:[^/].{0,1023}
*
* @param appInstanceArn
* The ARN of the AppInstance
for which the user is
* an administrator.
*
* The ARN of the AppInstance
for which the user is an
* administrator.
*
* Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: 5 - 1600
* Pattern:
* arn:[a-z0-9-\.]{1,63}:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:
* [a-z0-9-\.]{0,63}:[^/].{0,1023}
*
* @param appInstanceArn
* The ARN of the AppInstance
for which the user is
* an administrator.
*
* The time at which an administrator was created. *
* * @return* The time at which an administrator was created. *
*/ public java.util.Date getCreatedTimestamp() { return createdTimestamp; } /** ** The time at which an administrator was created. *
* * @param createdTimestamp* The time at which an administrator was created. *
*/ public void setCreatedTimestamp(java.util.Date createdTimestamp) { this.createdTimestamp = createdTimestamp; } /** ** The time at which an administrator was created. *
** Returns a reference to this object so that method calls can be chained * together. * * @param createdTimestamp
* The time at which an administrator was created. *
* @return A reference to this updated object so that method calls can be * chained together. */ public AppInstanceAdmin withCreatedTimestamp(java.util.Date createdTimestamp) { this.createdTimestamp = createdTimestamp; return this; } /** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getAdmin() != null) sb.append("Admin: " + getAdmin() + ","); if (getAppInstanceArn() != null) sb.append("AppInstanceArn: " + getAppInstanceArn() + ","); if (getCreatedTimestamp() != null) sb.append("CreatedTimestamp: " + getCreatedTimestamp()); sb.append("}"); return sb.toString(); } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAdmin() == null) ? 0 : getAdmin().hashCode()); hashCode = prime * hashCode + ((getAppInstanceArn() == null) ? 0 : getAppInstanceArn().hashCode()); hashCode = prime * hashCode + ((getCreatedTimestamp() == null) ? 0 : getCreatedTimestamp().hashCode()); return hashCode; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AppInstanceAdmin == false) return false; AppInstanceAdmin other = (AppInstanceAdmin) obj; if (other.getAdmin() == null ^ this.getAdmin() == null) return false; if (other.getAdmin() != null && other.getAdmin().equals(this.getAdmin()) == false) return false; if (other.getAppInstanceArn() == null ^ this.getAppInstanceArn() == null) return false; if (other.getAppInstanceArn() != null && other.getAppInstanceArn().equals(this.getAppInstanceArn()) == false) return false; if (other.getCreatedTimestamp() == null ^ this.getCreatedTimestamp() == null) return false; if (other.getCreatedTimestamp() != null && other.getCreatedTimestamp().equals(this.getCreatedTimestamp()) == false) return false; return true; } }