com.akeyless.auth.swagger.model.GetPolicyReplyObj Maven / Gradle / Ivy
/*
* Auth - Application API
* Auth manages access policies for services that need access policies management for their clients. Auth also issues temporary credentials for the services' clients and validates them for the services
*
* OpenAPI spec version: 1.0.2
* Contact: [email protected]
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.akeyless.auth.swagger.model;
import java.util.Objects;
import com.akeyless.auth.swagger.model.PolicyRules;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
/**
* GetPolicyReplyObj
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-11-21T16:11:23.052+02:00")
public class GetPolicyReplyObj {
@SerializedName("account_id")
private String accountId = null;
@SerializedName("attaches")
private String attaches = null;
@SerializedName("comment")
private String comment = null;
@SerializedName("expires")
private Long expires = null;
@SerializedName("policy_id")
private String policyId = null;
@SerializedName("policy_rules_type")
private String policyRulesType = null;
@SerializedName("policy_type")
private String policyType = null;
@SerializedName("rules")
private PolicyRules rules = null;
public GetPolicyReplyObj accountId(String accountId) {
this.accountId = accountId;
return this;
}
/**
* Account id.
* @return accountId
**/
@ApiModelProperty(value = "Account id.")
public String getAccountId() {
return accountId;
}
public void setAccountId(String accountId) {
this.accountId = accountId;
}
public GetPolicyReplyObj attaches(String attaches) {
this.attaches = attaches;
return this;
}
/**
* Policy attaches
* @return attaches
**/
@ApiModelProperty(value = "Policy attaches")
public String getAttaches() {
return attaches;
}
public void setAttaches(String attaches) {
this.attaches = attaches;
}
public GetPolicyReplyObj comment(String comment) {
this.comment = comment;
return this;
}
/**
* Comments
* @return comment
**/
@ApiModelProperty(value = "Comments")
public String getComment() {
return comment;
}
public void setComment(String comment) {
this.comment = comment;
}
public GetPolicyReplyObj expires(Long expires) {
this.expires = expires;
return this;
}
/**
* Policy expiration date.
* @return expires
**/
@ApiModelProperty(value = "Policy expiration date.")
public Long getExpires() {
return expires;
}
public void setExpires(Long expires) {
this.expires = expires;
}
public GetPolicyReplyObj policyId(String policyId) {
this.policyId = policyId;
return this;
}
/**
* Policy id.
* @return policyId
**/
@ApiModelProperty(value = "Policy id.")
public String getPolicyId() {
return policyId;
}
public void setPolicyId(String policyId) {
this.policyId = policyId;
}
public GetPolicyReplyObj policyRulesType(String policyRulesType) {
this.policyRulesType = policyRulesType;
return this;
}
/**
* Get policyRulesType
* @return policyRulesType
**/
@ApiModelProperty(value = "")
public String getPolicyRulesType() {
return policyRulesType;
}
public void setPolicyRulesType(String policyRulesType) {
this.policyRulesType = policyRulesType;
}
public GetPolicyReplyObj policyType(String policyType) {
this.policyType = policyType;
return this;
}
/**
* Get policyType
* @return policyType
**/
@ApiModelProperty(value = "")
public String getPolicyType() {
return policyType;
}
public void setPolicyType(String policyType) {
this.policyType = policyType;
}
public GetPolicyReplyObj rules(PolicyRules rules) {
this.rules = rules;
return this;
}
/**
* Get rules
* @return rules
**/
@ApiModelProperty(value = "")
public PolicyRules getRules() {
return rules;
}
public void setRules(PolicyRules rules) {
this.rules = rules;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
GetPolicyReplyObj getPolicyReplyObj = (GetPolicyReplyObj) o;
return Objects.equals(this.accountId, getPolicyReplyObj.accountId) &&
Objects.equals(this.attaches, getPolicyReplyObj.attaches) &&
Objects.equals(this.comment, getPolicyReplyObj.comment) &&
Objects.equals(this.expires, getPolicyReplyObj.expires) &&
Objects.equals(this.policyId, getPolicyReplyObj.policyId) &&
Objects.equals(this.policyRulesType, getPolicyReplyObj.policyRulesType) &&
Objects.equals(this.policyType, getPolicyReplyObj.policyType) &&
Objects.equals(this.rules, getPolicyReplyObj.rules);
}
@Override
public int hashCode() {
return Objects.hash(accountId, attaches, comment, expires, policyId, policyRulesType, policyType, rules);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class GetPolicyReplyObj {\n");
sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n");
sb.append(" attaches: ").append(toIndentedString(attaches)).append("\n");
sb.append(" comment: ").append(toIndentedString(comment)).append("\n");
sb.append(" expires: ").append(toIndentedString(expires)).append("\n");
sb.append(" policyId: ").append(toIndentedString(policyId)).append("\n");
sb.append(" policyRulesType: ").append(toIndentedString(policyRulesType)).append("\n");
sb.append(" policyType: ").append(toIndentedString(policyType)).append("\n");
sb.append(" rules: ").append(toIndentedString(rules)).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 ");
}
}