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

* Contains a summary of information about an access preview. *

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

* The unique ID for the access preview. *

*/ private String id; /** *

* The ARN of the analyzer used to generate the access preview. *

*/ private String analyzerArn; /** *

* The time at which the access preview was created. *

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

* The status of the access preview. *

* */ private String status; private AccessPreviewStatusReason statusReason; /** *

* The unique ID for the access preview. *

* * @param id * The unique ID for the access preview. */ public void setId(String id) { this.id = id; } /** *

* The unique ID for the access preview. *

* * @return The unique ID for the access preview. */ public String getId() { return this.id; } /** *

* The unique ID for the access preview. *

* * @param id * The unique ID for the access preview. * @return Returns a reference to this object so that method calls can be chained together. */ public AccessPreviewSummary withId(String id) { setId(id); return this; } /** *

* The ARN of the analyzer used to generate the access preview. *

* * @param analyzerArn * The ARN of the analyzer used to generate the access preview. */ public void setAnalyzerArn(String analyzerArn) { this.analyzerArn = analyzerArn; } /** *

* The ARN of the analyzer used to generate the access preview. *

* * @return The ARN of the analyzer used to generate the access preview. */ public String getAnalyzerArn() { return this.analyzerArn; } /** *

* The ARN of the analyzer used to generate the access preview. *

* * @param analyzerArn * The ARN of the analyzer used to generate the access preview. * @return Returns a reference to this object so that method calls can be chained together. */ public AccessPreviewSummary withAnalyzerArn(String analyzerArn) { setAnalyzerArn(analyzerArn); return this; } /** *

* The time at which the access preview was created. *

* * @param createdAt * The time at which the access preview was created. */ public void setCreatedAt(java.util.Date createdAt) { this.createdAt = createdAt; } /** *

* The time at which the access preview was created. *

* * @return The time at which the access preview was created. */ public java.util.Date getCreatedAt() { return this.createdAt; } /** *

* The time at which the access preview was created. *

* * @param createdAt * The time at which the access preview was created. * @return Returns a reference to this object so that method calls can be chained together. */ public AccessPreviewSummary withCreatedAt(java.util.Date createdAt) { setCreatedAt(createdAt); return this; } /** *

* The status of the access preview. *

* * * @param status * The status of the access preview.

*