com.huaweicloud.sdk.osm.v2.model.AgencyV2 Maven / Gradle / Ivy
package com.huaweicloud.sdk.osm.v2.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
/**
* AgencyV2
*/
public class AgencyV2 {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "id")
private String id;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "name")
private String name;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "duration")
private String duration;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "trust_domain_name")
private String trustDomainName;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "trust_domain_id")
private String trustDomainId;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "create_time")
private String createTime;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "expire_time")
private String expireTime;
public AgencyV2 withId(String id) {
this.id = id;
return this;
}
/**
* 委托id
* @return id
*/
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public AgencyV2 withName(String name) {
this.name = name;
return this;
}
/**
* 委托名称
* @return name
*/
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public AgencyV2 withDuration(String duration) {
this.duration = duration;
return this;
}
/**
* 委托的期限
* @return duration
*/
public String getDuration() {
return duration;
}
public void setDuration(String duration) {
this.duration = duration;
}
public AgencyV2 withTrustDomainName(String trustDomainName) {
this.trustDomainName = trustDomainName;
return this;
}
/**
* 委托的账号名称
* @return trustDomainName
*/
public String getTrustDomainName() {
return trustDomainName;
}
public void setTrustDomainName(String trustDomainName) {
this.trustDomainName = trustDomainName;
}
public AgencyV2 withTrustDomainId(String trustDomainId) {
this.trustDomainId = trustDomainId;
return this;
}
/**
* 委托的账号id
* @return trustDomainId
*/
public String getTrustDomainId() {
return trustDomainId;
}
public void setTrustDomainId(String trustDomainId) {
this.trustDomainId = trustDomainId;
}
public AgencyV2 withCreateTime(String createTime) {
this.createTime = createTime;
return this;
}
/**
* 创建时间
* @return createTime
*/
public String getCreateTime() {
return createTime;
}
public void setCreateTime(String createTime) {
this.createTime = createTime;
}
public AgencyV2 withExpireTime(String expireTime) {
this.expireTime = expireTime;
return this;
}
/**
* 超期时间
* @return expireTime
*/
public String getExpireTime() {
return expireTime;
}
public void setExpireTime(String expireTime) {
this.expireTime = expireTime;
}
@Override
public boolean equals(java.lang.Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
AgencyV2 that = (AgencyV2) obj;
return Objects.equals(this.id, that.id) && Objects.equals(this.name, that.name)
&& Objects.equals(this.duration, that.duration)
&& Objects.equals(this.trustDomainName, that.trustDomainName)
&& Objects.equals(this.trustDomainId, that.trustDomainId)
&& Objects.equals(this.createTime, that.createTime) && Objects.equals(this.expireTime, that.expireTime);
}
@Override
public int hashCode() {
return Objects.hash(id, name, duration, trustDomainName, trustDomainId, createTime, expireTime);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AgencyV2 {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" duration: ").append(toIndentedString(duration)).append("\n");
sb.append(" trustDomainName: ").append(toIndentedString(trustDomainName)).append("\n");
sb.append(" trustDomainId: ").append(toIndentedString(trustDomainId)).append("\n");
sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n");
sb.append(" expireTime: ").append(toIndentedString(expireTime)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}