/* * Copyright 2018-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.signer.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class RevokeSigningProfileRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *

* The name of the signing profile to be revoked. *

*/ private String profileName; /** *

* The version of the signing profile to be revoked. *

*/ private String profileVersion; /** *

* The reason for revoking a signing profile. *

*/ private String reason; /** *

* A timestamp for when revocation of a Signing Profile should become effective. Signatures generated using the * signing profile after this timestamp are not trusted. *

*/ private java.util.Date effectiveTime; /** *

* The name of the signing profile to be revoked. *

* * @param profileName * The name of the signing profile to be revoked. */ public void setProfileName(String profileName) { this.profileName = profileName; } /** *

* The name of the signing profile to be revoked. *

* * @return The name of the signing profile to be revoked. */ public String getProfileName() { return this.profileName; } /** *

* The name of the signing profile to be revoked. *

* * @param profileName * The name of the signing profile to be revoked. * @return Returns a reference to this object so that method calls can be chained together. */ public RevokeSigningProfileRequest withProfileName(String profileName) { setProfileName(profileName); return this; } /** *

* The version of the signing profile to be revoked. *

* * @param profileVersion * The version of the signing profile to be revoked. */ public void setProfileVersion(String profileVersion) { this.profileVersion = profileVersion; } /** *

* The version of the signing profile to be revoked. *

* * @return The version of the signing profile to be revoked. */ public String getProfileVersion() { return this.profileVersion; } /** *

* The version of the signing profile to be revoked. *

* * @param profileVersion * The version of the signing profile to be revoked. * @return Returns a reference to this object so that method calls can be chained together. */ public RevokeSigningProfileRequest withProfileVersion(String profileVersion) { setProfileVersion(profileVersion); return this; } /** *

* The reason for revoking a signing profile. *

* * @param reason * The reason for revoking a signing profile. */ public void setReason(String reason) { this.reason = reason; } /** *

* The reason for revoking a signing profile. *

* * @return The reason for revoking a signing profile. */ public String getReason() { return this.reason; } /** *

* The reason for revoking a signing profile. *

* * @param reason * The reason for revoking a signing profile. * @return Returns a reference to this object so that method calls can be chained together. */ public RevokeSigningProfileRequest withReason(String reason) { setReason(reason); return this; } /** *

* A timestamp for when revocation of a Signing Profile should become effective. Signatures generated using the * signing profile after this timestamp are not trusted. *

* * @param effectiveTime * A timestamp for when revocation of a Signing Profile should become effective. Signatures generated using * the signing profile after this timestamp are not trusted. */ public void setEffectiveTime(java.util.Date effectiveTime) { this.effectiveTime = effectiveTime; } /** *

* A timestamp for when revocation of a Signing Profile should become effective. Signatures generated using the * signing profile after this timestamp are not trusted. *

* * @return A timestamp for when revocation of a Signing Profile should become effective. Signatures generated using * the signing profile after this timestamp are not trusted. */ public java.util.Date getEffectiveTime() { return this.effectiveTime; } /** *

* A timestamp for when revocation of a Signing Profile should become effective. Signatures generated using the * signing profile after this timestamp are not trusted. *

* * @param effectiveTime * A timestamp for when revocation of a Signing Profile should become effective. Signatures generated using * the signing profile after this timestamp are not trusted. * @return Returns a reference to this object so that method calls can be chained together. */ public RevokeSigningProfileRequest withEffectiveTime(java.util.Date effectiveTime) { setEffectiveTime(effectiveTime); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getProfileName() != null) sb.append("ProfileName: ").append(getProfileName()).append(","); if (getProfileVersion() != null) sb.append("ProfileVersion: ").append(getProfileVersion()).append(","); if (getReason() != null) sb.append("Reason: ").append(getReason()).append(","); if (getEffectiveTime() != null) sb.append("EffectiveTime: ").append(getEffectiveTime()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof RevokeSigningProfileRequest == false) return false; RevokeSigningProfileRequest other = (RevokeSigningProfileRequest) obj; if (other.getProfileName() == null ^ this.getProfileName() == null) return false; if (other.getProfileName() != null && other.getProfileName().equals(this.getProfileName()) == false) return false; if (other.getProfileVersion() == null ^ this.getProfileVersion() == null) return false; if (other.getProfileVersion() != null && other.getProfileVersion().equals(this.getProfileVersion()) == false) return false; if (other.getReason() == null ^ this.getReason() == null) return false; if (other.getReason() != null && other.getReason().equals(this.getReason()) == false) return false; if (other.getEffectiveTime() == null ^ this.getEffectiveTime() == null) return false; if (other.getEffectiveTime() != null && other.getEffectiveTime().equals(this.getEffectiveTime()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getProfileName() == null) ? 0 : getProfileName().hashCode()); hashCode = prime * hashCode + ((getProfileVersion() == null) ? 0 : getProfileVersion().hashCode()); hashCode = prime * hashCode + ((getReason() == null) ? 0 : getReason().hashCode()); hashCode = prime * hashCode + ((getEffectiveTime() == null) ? 0 : getEffectiveTime().hashCode()); return hashCode; } @Override public RevokeSigningProfileRequest clone() { return (RevokeSigningProfileRequest) super.clone(); } }