/* * 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.securityhub.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Information about an instance profile. *
* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AwsIamInstanceProfile implements Serializable, Cloneable, StructuredPojo { /** ** The ARN of the instance profile. *
*/ private String arn; /** ** Indicates when the instance profile was created. *
*
* Uses the date-time
format specified in RFC
* 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be
* separated by T
. For example, 2020-03-22T13:22:13.933Z
.
*
* The identifier of the instance profile. *
*/ private String instanceProfileId; /** ** The name of the instance profile. *
*/ private String instanceProfileName; /** ** The path to the instance profile. *
*/ private String path; /** ** The roles associated with the instance profile. *
*/ private java.util.List* The ARN of the instance profile. *
* * @param arn * The ARN of the instance profile. */ public void setArn(String arn) { this.arn = arn; } /** ** The ARN of the instance profile. *
* * @return The ARN of the instance profile. */ public String getArn() { return this.arn; } /** ** The ARN of the instance profile. *
* * @param arn * The ARN of the instance profile. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsIamInstanceProfile withArn(String arn) { setArn(arn); return this; } /** ** Indicates when the instance profile was created. *
*
* Uses the date-time
format specified in RFC
* 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be
* separated by T
. For example, 2020-03-22T13:22:13.933Z
.
*
* Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time
* Format. The value cannot contain spaces, and date and time should be separated by T
. For
* example, 2020-03-22T13:22:13.933Z
.
*/
public void setCreateDate(String createDate) {
this.createDate = createDate;
}
/**
*
* Indicates when the instance profile was created. *
*
* Uses the date-time
format specified in RFC
* 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be
* separated by T
. For example, 2020-03-22T13:22:13.933Z
.
*
* Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time
* Format. The value cannot contain spaces, and date and time should be separated by T
. For
* example, 2020-03-22T13:22:13.933Z
.
*/
public String getCreateDate() {
return this.createDate;
}
/**
*
* Indicates when the instance profile was created. *
*
* Uses the date-time
format specified in RFC
* 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be
* separated by T
. For example, 2020-03-22T13:22:13.933Z
.
*
* Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time
* Format. The value cannot contain spaces, and date and time should be separated by T
. For
* example, 2020-03-22T13:22:13.933Z
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsIamInstanceProfile withCreateDate(String createDate) {
setCreateDate(createDate);
return this;
}
/**
*
* The identifier of the instance profile. *
* * @param instanceProfileId * The identifier of the instance profile. */ public void setInstanceProfileId(String instanceProfileId) { this.instanceProfileId = instanceProfileId; } /** ** The identifier of the instance profile. *
* * @return The identifier of the instance profile. */ public String getInstanceProfileId() { return this.instanceProfileId; } /** ** The identifier of the instance profile. *
* * @param instanceProfileId * The identifier of the instance profile. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsIamInstanceProfile withInstanceProfileId(String instanceProfileId) { setInstanceProfileId(instanceProfileId); return this; } /** ** The name of the instance profile. *
* * @param instanceProfileName * The name of the instance profile. */ public void setInstanceProfileName(String instanceProfileName) { this.instanceProfileName = instanceProfileName; } /** ** The name of the instance profile. *
* * @return The name of the instance profile. */ public String getInstanceProfileName() { return this.instanceProfileName; } /** ** The name of the instance profile. *
* * @param instanceProfileName * The name of the instance profile. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsIamInstanceProfile withInstanceProfileName(String instanceProfileName) { setInstanceProfileName(instanceProfileName); return this; } /** ** The path to the instance profile. *
* * @param path * The path to the instance profile. */ public void setPath(String path) { this.path = path; } /** ** The path to the instance profile. *
* * @return The path to the instance profile. */ public String getPath() { return this.path; } /** ** The path to the instance profile. *
* * @param path * The path to the instance profile. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsIamInstanceProfile withPath(String path) { setPath(path); return this; } /** ** The roles associated with the instance profile. *
* * @return The roles associated with the instance profile. */ public java.util.List* The roles associated with the instance profile. *
* * @param roles * The roles associated with the instance profile. */ public void setRoles(java.util.Collection* The roles associated with the instance profile. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setRoles(java.util.Collection)} or {@link #withRoles(java.util.Collection)} if you want to override the * existing values. *
* * @param roles * The roles associated with the instance profile. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsIamInstanceProfile withRoles(AwsIamInstanceProfileRole... roles) { if (this.roles == null) { setRoles(new java.util.ArrayList* The roles associated with the instance profile. *
* * @param roles * The roles associated with the instance profile. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsIamInstanceProfile withRoles(java.util.Collection