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

com.amazonaws.services.datazone.model.AcceptSubscriptionRequestResult Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon DataZone module holds the client classes that are used for communicating with Amazon DataZone Service

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2019-2024 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.datazone.model;

import java.io.Serializable;
import javax.annotation.Generated;

/**
 * 
 * @see AWS
 *      API Documentation
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class AcceptSubscriptionRequestResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {

    /**
     * 

* The timestamp that specifies when the subscription request was accepted. *

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

* Specifies the Amazon DataZone user that accepted the specified subscription request. *

*/ private String createdBy; /** *

* Specifies the reason for accepting the subscription request. *

*/ private String decisionComment; /** *

* The unique identifier of the Amazon DataZone domain where the specified subscription request was accepted. *

*/ private String domainId; /** *

* The identifier of the subscription request. *

*/ private String id; /** *

* Specifies the reason for requesting a subscription to the asset. *

*/ private String requestReason; /** *

* Specifes the ID of the Amazon DataZone user who reviewed the subscription request. *

*/ private String reviewerId; /** *

* Specifies the status of the subscription request. *

*/ private String status; /** *

* Specifies the asset for which the subscription request was created. *

*/ private java.util.List subscribedListings; /** *

* Specifies the Amazon DataZone users who are subscribed to the asset specified in the subscription request. *

*/ private java.util.List subscribedPrincipals; /** *

* Specifies the timestamp when subscription request was updated. *

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

* Specifies the Amazon DataZone user who updated the subscription request. *

*/ private String updatedBy; /** *

* The timestamp that specifies when the subscription request was accepted. *

* * @param createdAt * The timestamp that specifies when the subscription request was accepted. */ public void setCreatedAt(java.util.Date createdAt) { this.createdAt = createdAt; } /** *

* The timestamp that specifies when the subscription request was accepted. *

* * @return The timestamp that specifies when the subscription request was accepted. */ public java.util.Date getCreatedAt() { return this.createdAt; } /** *

* The timestamp that specifies when the subscription request was accepted. *

* * @param createdAt * The timestamp that specifies when the subscription request was accepted. * @return Returns a reference to this object so that method calls can be chained together. */ public AcceptSubscriptionRequestResult withCreatedAt(java.util.Date createdAt) { setCreatedAt(createdAt); return this; } /** *

* Specifies the Amazon DataZone user that accepted the specified subscription request. *

* * @param createdBy * Specifies the Amazon DataZone user that accepted the specified subscription request. */ public void setCreatedBy(String createdBy) { this.createdBy = createdBy; } /** *

* Specifies the Amazon DataZone user that accepted the specified subscription request. *

* * @return Specifies the Amazon DataZone user that accepted the specified subscription request. */ public String getCreatedBy() { return this.createdBy; } /** *

* Specifies the Amazon DataZone user that accepted the specified subscription request. *

* * @param createdBy * Specifies the Amazon DataZone user that accepted the specified subscription request. * @return Returns a reference to this object so that method calls can be chained together. */ public AcceptSubscriptionRequestResult withCreatedBy(String createdBy) { setCreatedBy(createdBy); return this; } /** *

* Specifies the reason for accepting the subscription request. *

* * @param decisionComment * Specifies the reason for accepting the subscription request. */ public void setDecisionComment(String decisionComment) { this.decisionComment = decisionComment; } /** *

* Specifies the reason for accepting the subscription request. *

* * @return Specifies the reason for accepting the subscription request. */ public String getDecisionComment() { return this.decisionComment; } /** *

* Specifies the reason for accepting the subscription request. *

* * @param decisionComment * Specifies the reason for accepting the subscription request. * @return Returns a reference to this object so that method calls can be chained together. */ public AcceptSubscriptionRequestResult withDecisionComment(String decisionComment) { setDecisionComment(decisionComment); return this; } /** *

* The unique identifier of the Amazon DataZone domain where the specified subscription request was accepted. *

* * @param domainId * The unique identifier of the Amazon DataZone domain where the specified subscription request was accepted. */ public void setDomainId(String domainId) { this.domainId = domainId; } /** *

* The unique identifier of the Amazon DataZone domain where the specified subscription request was accepted. *

* * @return The unique identifier of the Amazon DataZone domain where the specified subscription request was * accepted. */ public String getDomainId() { return this.domainId; } /** *

* The unique identifier of the Amazon DataZone domain where the specified subscription request was accepted. *

* * @param domainId * The unique identifier of the Amazon DataZone domain where the specified subscription request was accepted. * @return Returns a reference to this object so that method calls can be chained together. */ public AcceptSubscriptionRequestResult withDomainId(String domainId) { setDomainId(domainId); return this; } /** *

* The identifier of the subscription request. *

* * @param id * The identifier of the subscription request. */ public void setId(String id) { this.id = id; } /** *

* The identifier of the subscription request. *

* * @return The identifier of the subscription request. */ public String getId() { return this.id; } /** *

* The identifier of the subscription request. *

* * @param id * The identifier of the subscription request. * @return Returns a reference to this object so that method calls can be chained together. */ public AcceptSubscriptionRequestResult withId(String id) { setId(id); return this; } /** *

* Specifies the reason for requesting a subscription to the asset. *

* * @param requestReason * Specifies the reason for requesting a subscription to the asset. */ public void setRequestReason(String requestReason) { this.requestReason = requestReason; } /** *

* Specifies the reason for requesting a subscription to the asset. *

* * @return Specifies the reason for requesting a subscription to the asset. */ public String getRequestReason() { return this.requestReason; } /** *

* Specifies the reason for requesting a subscription to the asset. *

* * @param requestReason * Specifies the reason for requesting a subscription to the asset. * @return Returns a reference to this object so that method calls can be chained together. */ public AcceptSubscriptionRequestResult withRequestReason(String requestReason) { setRequestReason(requestReason); return this; } /** *

* Specifes the ID of the Amazon DataZone user who reviewed the subscription request. *

* * @param reviewerId * Specifes the ID of the Amazon DataZone user who reviewed the subscription request. */ public void setReviewerId(String reviewerId) { this.reviewerId = reviewerId; } /** *

* Specifes the ID of the Amazon DataZone user who reviewed the subscription request. *

* * @return Specifes the ID of the Amazon DataZone user who reviewed the subscription request. */ public String getReviewerId() { return this.reviewerId; } /** *

* Specifes the ID of the Amazon DataZone user who reviewed the subscription request. *

* * @param reviewerId * Specifes the ID of the Amazon DataZone user who reviewed the subscription request. * @return Returns a reference to this object so that method calls can be chained together. */ public AcceptSubscriptionRequestResult withReviewerId(String reviewerId) { setReviewerId(reviewerId); return this; } /** *

* Specifies the status of the subscription request. *

* * @param status * Specifies the status of the subscription request. * @see SubscriptionRequestStatus */ public void setStatus(String status) { this.status = status; } /** *

* Specifies the status of the subscription request. *

* * @return Specifies the status of the subscription request. * @see SubscriptionRequestStatus */ public String getStatus() { return this.status; } /** *

* Specifies the status of the subscription request. *

* * @param status * Specifies the status of the subscription request. * @return Returns a reference to this object so that method calls can be chained together. * @see SubscriptionRequestStatus */ public AcceptSubscriptionRequestResult withStatus(String status) { setStatus(status); return this; } /** *

* Specifies the status of the subscription request. *

* * @param status * Specifies the status of the subscription request. * @return Returns a reference to this object so that method calls can be chained together. * @see SubscriptionRequestStatus */ public AcceptSubscriptionRequestResult withStatus(SubscriptionRequestStatus status) { this.status = status.toString(); return this; } /** *

* Specifies the asset for which the subscription request was created. *

* * @return Specifies the asset for which the subscription request was created. */ public java.util.List getSubscribedListings() { return subscribedListings; } /** *

* Specifies the asset for which the subscription request was created. *

* * @param subscribedListings * Specifies the asset for which the subscription request was created. */ public void setSubscribedListings(java.util.Collection subscribedListings) { if (subscribedListings == null) { this.subscribedListings = null; return; } this.subscribedListings = new java.util.ArrayList(subscribedListings); } /** *

* Specifies the asset for which the subscription request was created. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setSubscribedListings(java.util.Collection)} or {@link #withSubscribedListings(java.util.Collection)} if * you want to override the existing values. *

* * @param subscribedListings * Specifies the asset for which the subscription request was created. * @return Returns a reference to this object so that method calls can be chained together. */ public AcceptSubscriptionRequestResult withSubscribedListings(SubscribedListing... subscribedListings) { if (this.subscribedListings == null) { setSubscribedListings(new java.util.ArrayList(subscribedListings.length)); } for (SubscribedListing ele : subscribedListings) { this.subscribedListings.add(ele); } return this; } /** *

* Specifies the asset for which the subscription request was created. *

* * @param subscribedListings * Specifies the asset for which the subscription request was created. * @return Returns a reference to this object so that method calls can be chained together. */ public AcceptSubscriptionRequestResult withSubscribedListings(java.util.Collection subscribedListings) { setSubscribedListings(subscribedListings); return this; } /** *

* Specifies the Amazon DataZone users who are subscribed to the asset specified in the subscription request. *

* * @return Specifies the Amazon DataZone users who are subscribed to the asset specified in the subscription * request. */ public java.util.List getSubscribedPrincipals() { return subscribedPrincipals; } /** *

* Specifies the Amazon DataZone users who are subscribed to the asset specified in the subscription request. *

* * @param subscribedPrincipals * Specifies the Amazon DataZone users who are subscribed to the asset specified in the subscription request. */ public void setSubscribedPrincipals(java.util.Collection subscribedPrincipals) { if (subscribedPrincipals == null) { this.subscribedPrincipals = null; return; } this.subscribedPrincipals = new java.util.ArrayList(subscribedPrincipals); } /** *

* Specifies the Amazon DataZone users who are subscribed to the asset specified in the subscription request. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setSubscribedPrincipals(java.util.Collection)} or {@link #withSubscribedPrincipals(java.util.Collection)} * if you want to override the existing values. *

* * @param subscribedPrincipals * Specifies the Amazon DataZone users who are subscribed to the asset specified in the subscription request. * @return Returns a reference to this object so that method calls can be chained together. */ public AcceptSubscriptionRequestResult withSubscribedPrincipals(SubscribedPrincipal... subscribedPrincipals) { if (this.subscribedPrincipals == null) { setSubscribedPrincipals(new java.util.ArrayList(subscribedPrincipals.length)); } for (SubscribedPrincipal ele : subscribedPrincipals) { this.subscribedPrincipals.add(ele); } return this; } /** *

* Specifies the Amazon DataZone users who are subscribed to the asset specified in the subscription request. *

* * @param subscribedPrincipals * Specifies the Amazon DataZone users who are subscribed to the asset specified in the subscription request. * @return Returns a reference to this object so that method calls can be chained together. */ public AcceptSubscriptionRequestResult withSubscribedPrincipals(java.util.Collection subscribedPrincipals) { setSubscribedPrincipals(subscribedPrincipals); return this; } /** *

* Specifies the timestamp when subscription request was updated. *

* * @param updatedAt * Specifies the timestamp when subscription request was updated. */ public void setUpdatedAt(java.util.Date updatedAt) { this.updatedAt = updatedAt; } /** *

* Specifies the timestamp when subscription request was updated. *

* * @return Specifies the timestamp when subscription request was updated. */ public java.util.Date getUpdatedAt() { return this.updatedAt; } /** *

* Specifies the timestamp when subscription request was updated. *

* * @param updatedAt * Specifies the timestamp when subscription request was updated. * @return Returns a reference to this object so that method calls can be chained together. */ public AcceptSubscriptionRequestResult withUpdatedAt(java.util.Date updatedAt) { setUpdatedAt(updatedAt); return this; } /** *

* Specifies the Amazon DataZone user who updated the subscription request. *

* * @param updatedBy * Specifies the Amazon DataZone user who updated the subscription request. */ public void setUpdatedBy(String updatedBy) { this.updatedBy = updatedBy; } /** *

* Specifies the Amazon DataZone user who updated the subscription request. *

* * @return Specifies the Amazon DataZone user who updated the subscription request. */ public String getUpdatedBy() { return this.updatedBy; } /** *

* Specifies the Amazon DataZone user who updated the subscription request. *

* * @param updatedBy * Specifies the Amazon DataZone user who updated the subscription request. * @return Returns a reference to this object so that method calls can be chained together. */ public AcceptSubscriptionRequestResult withUpdatedBy(String updatedBy) { setUpdatedBy(updatedBy); 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 (getCreatedAt() != null) sb.append("CreatedAt: ").append(getCreatedAt()).append(","); if (getCreatedBy() != null) sb.append("CreatedBy: ").append(getCreatedBy()).append(","); if (getDecisionComment() != null) sb.append("DecisionComment: ").append("***Sensitive Data Redacted***").append(","); if (getDomainId() != null) sb.append("DomainId: ").append(getDomainId()).append(","); if (getId() != null) sb.append("Id: ").append(getId()).append(","); if (getRequestReason() != null) sb.append("RequestReason: ").append("***Sensitive Data Redacted***").append(","); if (getReviewerId() != null) sb.append("ReviewerId: ").append(getReviewerId()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getSubscribedListings() != null) sb.append("SubscribedListings: ").append(getSubscribedListings()).append(","); if (getSubscribedPrincipals() != null) sb.append("SubscribedPrincipals: ").append(getSubscribedPrincipals()).append(","); if (getUpdatedAt() != null) sb.append("UpdatedAt: ").append(getUpdatedAt()).append(","); if (getUpdatedBy() != null) sb.append("UpdatedBy: ").append(getUpdatedBy()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AcceptSubscriptionRequestResult == false) return false; AcceptSubscriptionRequestResult other = (AcceptSubscriptionRequestResult) obj; if (other.getCreatedAt() == null ^ this.getCreatedAt() == null) return false; if (other.getCreatedAt() != null && other.getCreatedAt().equals(this.getCreatedAt()) == false) return false; if (other.getCreatedBy() == null ^ this.getCreatedBy() == null) return false; if (other.getCreatedBy() != null && other.getCreatedBy().equals(this.getCreatedBy()) == false) return false; if (other.getDecisionComment() == null ^ this.getDecisionComment() == null) return false; if (other.getDecisionComment() != null && other.getDecisionComment().equals(this.getDecisionComment()) == false) return false; if (other.getDomainId() == null ^ this.getDomainId() == null) return false; if (other.getDomainId() != null && other.getDomainId().equals(this.getDomainId()) == false) return false; if (other.getId() == null ^ this.getId() == null) return false; if (other.getId() != null && other.getId().equals(this.getId()) == false) return false; if (other.getRequestReason() == null ^ this.getRequestReason() == null) return false; if (other.getRequestReason() != null && other.getRequestReason().equals(this.getRequestReason()) == false) return false; if (other.getReviewerId() == null ^ this.getReviewerId() == null) return false; if (other.getReviewerId() != null && other.getReviewerId().equals(this.getReviewerId()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getSubscribedListings() == null ^ this.getSubscribedListings() == null) return false; if (other.getSubscribedListings() != null && other.getSubscribedListings().equals(this.getSubscribedListings()) == false) return false; if (other.getSubscribedPrincipals() == null ^ this.getSubscribedPrincipals() == null) return false; if (other.getSubscribedPrincipals() != null && other.getSubscribedPrincipals().equals(this.getSubscribedPrincipals()) == false) return false; if (other.getUpdatedAt() == null ^ this.getUpdatedAt() == null) return false; if (other.getUpdatedAt() != null && other.getUpdatedAt().equals(this.getUpdatedAt()) == false) return false; if (other.getUpdatedBy() == null ^ this.getUpdatedBy() == null) return false; if (other.getUpdatedBy() != null && other.getUpdatedBy().equals(this.getUpdatedBy()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode()); hashCode = prime * hashCode + ((getCreatedBy() == null) ? 0 : getCreatedBy().hashCode()); hashCode = prime * hashCode + ((getDecisionComment() == null) ? 0 : getDecisionComment().hashCode()); hashCode = prime * hashCode + ((getDomainId() == null) ? 0 : getDomainId().hashCode()); hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); hashCode = prime * hashCode + ((getRequestReason() == null) ? 0 : getRequestReason().hashCode()); hashCode = prime * hashCode + ((getReviewerId() == null) ? 0 : getReviewerId().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getSubscribedListings() == null) ? 0 : getSubscribedListings().hashCode()); hashCode = prime * hashCode + ((getSubscribedPrincipals() == null) ? 0 : getSubscribedPrincipals().hashCode()); hashCode = prime * hashCode + ((getUpdatedAt() == null) ? 0 : getUpdatedAt().hashCode()); hashCode = prime * hashCode + ((getUpdatedBy() == null) ? 0 : getUpdatedBy().hashCode()); return hashCode; } @Override public AcceptSubscriptionRequestResult clone() { try { return (AcceptSubscriptionRequestResult) 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