All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ksc.epc.model.DescribeKeysResult Maven / Gradle / Ivy

package com.ksc.epc.model;

import lombok.Data;

import java.io.Serializable;
import com.ksc.internal.SdkInternalList;
import java.util.List;

/**
 * 

* Contains the output of DescribeKeys. *

*/ @Data public class DescribeKeysResult implements Serializable, Cloneable { private String RequestId; private SdkInternalList KeySet; private Integer TotalCount; private String NextToken; @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; if (!super.equals(o)) return false; DescribeKeysResult that = (DescribeKeysResult) o; if (RequestId != null ? !RequestId.equals(that.RequestId) : that.RequestId != null) return false; if (KeySet != null ? !KeySet.equals(that.KeySet) : that.KeySet != null) return false; if (TotalCount != null ? !TotalCount.equals(that.TotalCount) : that.TotalCount != null) return false; if (NextToken != null ? !NextToken.equals(that.NextToken) : that.NextToken != null) return false; return true; } @Override public int hashCode() { int result = super.hashCode(); result = 31 * result + (RequestId != null ? RequestId.hashCode() : 0); result = 31 * result + (KeySet != null ? KeySet.hashCode() : 0); result = 31 * result + (TotalCount != null ? TotalCount.hashCode() : 0); result = 31 * result + (NextToken != null ? NextToken.hashCode() : 0); return result; } public void addKeySet(Key... keys) { if (this.KeySet == null) { this.KeySet = new SdkInternalList(); } for (Key key : keys) { this.KeySet.add(key); } } public void setKeySet(List keys) { this.KeySet = new SdkInternalList(keys); } @Override public DescribeKeysResult clone() { try { return (DescribeKeysResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException( "Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy