/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Information about an instance profile.See Also:
AWS
* API Reference
The ARN of the instance profile.
*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *The ARN of the instance profile.
*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *The ARN of the instance profile.
*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *The ARN of the instance profile.
*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *The ARN of the instance profile.
*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *The ARN of the instance profile.
*/ inline AwsIamInstanceProfile& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *The ARN of the instance profile.
*/ inline AwsIamInstanceProfile& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *The ARN of the instance profile.
*/ inline AwsIamInstanceProfile& WithArn(const char* value) { SetArn(value); 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
.
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
.
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
.
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
.
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
.
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
.
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
.
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.
*/ inline const Aws::String& GetInstanceProfileId() const{ return m_instanceProfileId; } /** *The identifier of the instance profile.
*/ inline bool InstanceProfileIdHasBeenSet() const { return m_instanceProfileIdHasBeenSet; } /** *The identifier of the instance profile.
*/ inline void SetInstanceProfileId(const Aws::String& value) { m_instanceProfileIdHasBeenSet = true; m_instanceProfileId = value; } /** *The identifier of the instance profile.
*/ inline void SetInstanceProfileId(Aws::String&& value) { m_instanceProfileIdHasBeenSet = true; m_instanceProfileId = std::move(value); } /** *The identifier of the instance profile.
*/ inline void SetInstanceProfileId(const char* value) { m_instanceProfileIdHasBeenSet = true; m_instanceProfileId.assign(value); } /** *The identifier of the instance profile.
*/ inline AwsIamInstanceProfile& WithInstanceProfileId(const Aws::String& value) { SetInstanceProfileId(value); return *this;} /** *The identifier of the instance profile.
*/ inline AwsIamInstanceProfile& WithInstanceProfileId(Aws::String&& value) { SetInstanceProfileId(std::move(value)); return *this;} /** *The identifier of the instance profile.
*/ inline AwsIamInstanceProfile& WithInstanceProfileId(const char* value) { SetInstanceProfileId(value); return *this;} /** *The name of the instance profile.
*/ inline const Aws::String& GetInstanceProfileName() const{ return m_instanceProfileName; } /** *The name of the instance profile.
*/ inline bool InstanceProfileNameHasBeenSet() const { return m_instanceProfileNameHasBeenSet; } /** *The name of the instance profile.
*/ inline void SetInstanceProfileName(const Aws::String& value) { m_instanceProfileNameHasBeenSet = true; m_instanceProfileName = value; } /** *The name of the instance profile.
*/ inline void SetInstanceProfileName(Aws::String&& value) { m_instanceProfileNameHasBeenSet = true; m_instanceProfileName = std::move(value); } /** *The name of the instance profile.
*/ inline void SetInstanceProfileName(const char* value) { m_instanceProfileNameHasBeenSet = true; m_instanceProfileName.assign(value); } /** *The name of the instance profile.
*/ inline AwsIamInstanceProfile& WithInstanceProfileName(const Aws::String& value) { SetInstanceProfileName(value); return *this;} /** *The name of the instance profile.
*/ inline AwsIamInstanceProfile& WithInstanceProfileName(Aws::String&& value) { SetInstanceProfileName(std::move(value)); return *this;} /** *The name of the instance profile.
*/ inline AwsIamInstanceProfile& WithInstanceProfileName(const char* value) { SetInstanceProfileName(value); return *this;} /** *The path to the instance profile.
*/ inline const Aws::String& GetPath() const{ return m_path; } /** *The path to the instance profile.
*/ inline bool PathHasBeenSet() const { return m_pathHasBeenSet; } /** *The path to the instance profile.
*/ inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; } /** *The path to the instance profile.
*/ inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); } /** *The path to the instance profile.
*/ inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); } /** *The path to the instance profile.
*/ inline AwsIamInstanceProfile& WithPath(const Aws::String& value) { SetPath(value); return *this;} /** *The path to the instance profile.
*/ inline AwsIamInstanceProfile& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;} /** *The path to the instance profile.
*/ inline AwsIamInstanceProfile& WithPath(const char* value) { SetPath(value); return *this;} /** *The roles associated with the instance profile.
*/ inline const Aws::VectorThe roles associated with the instance profile.
*/ inline bool RolesHasBeenSet() const { return m_rolesHasBeenSet; } /** *The roles associated with the instance profile.
*/ inline void SetRoles(const Aws::VectorThe roles associated with the instance profile.
*/ inline void SetRoles(Aws::VectorThe roles associated with the instance profile.
*/ inline AwsIamInstanceProfile& WithRoles(const Aws::VectorThe roles associated with the instance profile.
*/ inline AwsIamInstanceProfile& WithRoles(Aws::VectorThe roles associated with the instance profile.
*/ inline AwsIamInstanceProfile& AddRoles(const AwsIamInstanceProfileRole& value) { m_rolesHasBeenSet = true; m_roles.push_back(value); return *this; } /** *The roles associated with the instance profile.
*/ inline AwsIamInstanceProfile& AddRoles(AwsIamInstanceProfileRole&& value) { m_rolesHasBeenSet = true; m_roles.push_back(std::move(value)); return *this; } private: Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_createDate; bool m_createDateHasBeenSet = false; Aws::String m_instanceProfileId; bool m_instanceProfileIdHasBeenSet = false; Aws::String m_instanceProfileName; bool m_instanceProfileNameHasBeenSet = false; Aws::String m_path; bool m_pathHasBeenSet = false; Aws::Vector