/* * 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.managedblockchain.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* An invitation to an Amazon Web Services account to create a member and join the network. *

*

* Applies only to Hyperledger Fabric. *

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

* The unique identifier for the invitation. *

*/ private String invitationId; /** *

* The date and time that the invitation was created. *

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

* The date and time that the invitation expires. This is the CreationDate plus the * ProposalDurationInHours that is specified in the ProposalThresholdPolicy. After this * date and time, the invitee can no longer create a member and join the network using this * InvitationId. *

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

* The status of the invitation: *

* */ private String status; private NetworkSummary networkSummary; /** *

* The Amazon Resource Name (ARN) of the invitation. For more information about ARNs and their format, see Amazon Resource Names * (ARNs) in the Amazon Web Services General Reference. *

*/ private String arn; /** *

* The unique identifier for the invitation. *

* * @param invitationId * The unique identifier for the invitation. */ public void setInvitationId(String invitationId) { this.invitationId = invitationId; } /** *

* The unique identifier for the invitation. *

* * @return The unique identifier for the invitation. */ public String getInvitationId() { return this.invitationId; } /** *

* The unique identifier for the invitation. *

* * @param invitationId * The unique identifier for the invitation. * @return Returns a reference to this object so that method calls can be chained together. */ public Invitation withInvitationId(String invitationId) { setInvitationId(invitationId); return this; } /** *

* The date and time that the invitation was created. *

* * @param creationDate * The date and time that the invitation was created. */ public void setCreationDate(java.util.Date creationDate) { this.creationDate = creationDate; } /** *

* The date and time that the invitation was created. *

* * @return The date and time that the invitation was created. */ public java.util.Date getCreationDate() { return this.creationDate; } /** *

* The date and time that the invitation was created. *

* * @param creationDate * The date and time that the invitation was created. * @return Returns a reference to this object so that method calls can be chained together. */ public Invitation withCreationDate(java.util.Date creationDate) { setCreationDate(creationDate); return this; } /** *

* The date and time that the invitation expires. This is the CreationDate plus the * ProposalDurationInHours that is specified in the ProposalThresholdPolicy. After this * date and time, the invitee can no longer create a member and join the network using this * InvitationId. *

* * @param expirationDate * The date and time that the invitation expires. This is the CreationDate plus the * ProposalDurationInHours that is specified in the ProposalThresholdPolicy. After * this date and time, the invitee can no longer create a member and join the network using this * InvitationId. */ public void setExpirationDate(java.util.Date expirationDate) { this.expirationDate = expirationDate; } /** *

* The date and time that the invitation expires. This is the CreationDate plus the * ProposalDurationInHours that is specified in the ProposalThresholdPolicy. After this * date and time, the invitee can no longer create a member and join the network using this * InvitationId. *

* * @return The date and time that the invitation expires. This is the CreationDate plus the * ProposalDurationInHours that is specified in the ProposalThresholdPolicy. After * this date and time, the invitee can no longer create a member and join the network using this * InvitationId. */ public java.util.Date getExpirationDate() { return this.expirationDate; } /** *

* The date and time that the invitation expires. This is the CreationDate plus the * ProposalDurationInHours that is specified in the ProposalThresholdPolicy. After this * date and time, the invitee can no longer create a member and join the network using this * InvitationId. *

* * @param expirationDate * The date and time that the invitation expires. This is the CreationDate plus the * ProposalDurationInHours that is specified in the ProposalThresholdPolicy. After * this date and time, the invitee can no longer create a member and join the network using this * InvitationId. * @return Returns a reference to this object so that method calls can be chained together. */ public Invitation withExpirationDate(java.util.Date expirationDate) { setExpirationDate(expirationDate); return this; } /** *

* The status of the invitation: *

* * * @param status * The status of the invitation:

*