com.mypurecloud.sdk.model.EncryptionKey Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of platform-client Show documentation
Show all versions of platform-client Show documentation
The official Java SDK for the PureCloud Platform API SDK
The newest version!
package com.mypurecloud.sdk.model;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.mypurecloud.sdk.model.User;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import java.io.Serializable;
/**
* EncryptionKey
*/
public class EncryptionKey implements Serializable {
private String id = null;
private String name = null;
private Date createDate = null;
private String keydataSummary = null;
private User user = null;
private String selfUri = null;
@ApiModelProperty(example = "null", value = "The globally unique identifier for the object.")
@JsonProperty("id")
public String getId() {
return id;
}
/**
**/
public EncryptionKey name(String name) {
this.name = name;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("name")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
/**
* create date of the key pair. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
**/
public EncryptionKey createDate(Date createDate) {
this.createDate = createDate;
return this;
}
@ApiModelProperty(example = "null", value = "create date of the key pair. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ")
@JsonProperty("createDate")
public Date getCreateDate() {
return createDate;
}
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
/**
* key data summary (base 64 encoded public key)
**/
public EncryptionKey keydataSummary(String keydataSummary) {
this.keydataSummary = keydataSummary;
return this;
}
@ApiModelProperty(example = "null", value = "key data summary (base 64 encoded public key)")
@JsonProperty("keydataSummary")
public String getKeydataSummary() {
return keydataSummary;
}
public void setKeydataSummary(String keydataSummary) {
this.keydataSummary = keydataSummary;
}
/**
* user that requested generation of public key
**/
public EncryptionKey user(User user) {
this.user = user;
return this;
}
@ApiModelProperty(example = "null", value = "user that requested generation of public key")
@JsonProperty("user")
public User getUser() {
return user;
}
public void setUser(User user) {
this.user = user;
}
@ApiModelProperty(example = "null", value = "The URI for this object")
@JsonProperty("selfUri")
public String getSelfUri() {
return selfUri;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
EncryptionKey encryptionKey = (EncryptionKey) o;
return Objects.equals(this.id, encryptionKey.id) &&
Objects.equals(this.name, encryptionKey.name) &&
Objects.equals(this.createDate, encryptionKey.createDate) &&
Objects.equals(this.keydataSummary, encryptionKey.keydataSummary) &&
Objects.equals(this.user, encryptionKey.user) &&
Objects.equals(this.selfUri, encryptionKey.selfUri);
}
@Override
public int hashCode() {
return Objects.hash(id, name, createDate, keydataSummary, user, selfUri);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class EncryptionKey {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" createDate: ").append(toIndentedString(createDate)).append("\n");
sb.append(" keydataSummary: ").append(toIndentedString(keydataSummary)).append("\n");
sb.append(" user: ").append(toIndentedString(user)).append("\n");
sb.append(" selfUri: ").append(toIndentedString(selfUri)).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 ");
}
}