/* * 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.ec2.model; import java.io.Serializable; import javax.annotation.Generated; /** *
* PrincipalIdFormat description *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class PrincipalIdFormat implements Serializable, Cloneable { /** ** PrincipalIdFormatARN description *
*/ private String arn; /** ** PrincipalIdFormatStatuses description *
*/ private com.amazonaws.internal.SdkInternalList* PrincipalIdFormatARN description *
* * @param arn * PrincipalIdFormatARN description */ public void setArn(String arn) { this.arn = arn; } /** ** PrincipalIdFormatARN description *
* * @return PrincipalIdFormatARN description */ public String getArn() { return this.arn; } /** ** PrincipalIdFormatARN description *
* * @param arn * PrincipalIdFormatARN description * @return Returns a reference to this object so that method calls can be chained together. */ public PrincipalIdFormat withArn(String arn) { setArn(arn); return this; } /** ** PrincipalIdFormatStatuses description *
* * @return PrincipalIdFormatStatuses description */ public java.util.List* PrincipalIdFormatStatuses description *
* * @param statuses * PrincipalIdFormatStatuses description */ public void setStatuses(java.util.Collection* PrincipalIdFormatStatuses description *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setStatuses(java.util.Collection)} or {@link #withStatuses(java.util.Collection)} if you want to override * the existing values. *
* * @param statuses * PrincipalIdFormatStatuses description * @return Returns a reference to this object so that method calls can be chained together. */ public PrincipalIdFormat withStatuses(IdFormat... statuses) { if (this.statuses == null) { setStatuses(new com.amazonaws.internal.SdkInternalList* PrincipalIdFormatStatuses description *
* * @param statuses * PrincipalIdFormatStatuses description * @return Returns a reference to this object so that method calls can be chained together. */ public PrincipalIdFormat withStatuses(java.util.Collection