/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace RolesAnywhere { namespace Model { /** */ class CreateProfileRequest : public RolesAnywhereRequest { public: AWS_ROLESANYWHERE_API CreateProfileRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateProfile"; } AWS_ROLESANYWHERE_API Aws::String SerializePayload() const override; /** *

The number of seconds the vended session credentials are valid for.

*/ inline int GetDurationSeconds() const{ return m_durationSeconds; } /** *

The number of seconds the vended session credentials are valid for.

*/ inline bool DurationSecondsHasBeenSet() const { return m_durationSecondsHasBeenSet; } /** *

The number of seconds the vended session credentials are valid for.

*/ inline void SetDurationSeconds(int value) { m_durationSecondsHasBeenSet = true; m_durationSeconds = value; } /** *

The number of seconds the vended session credentials are valid for.

*/ inline CreateProfileRequest& WithDurationSeconds(int value) { SetDurationSeconds(value); return *this;} /** *

Specifies whether the profile is enabled.

*/ inline bool GetEnabled() const{ return m_enabled; } /** *

Specifies whether the profile is enabled.

*/ inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; } /** *

Specifies whether the profile is enabled.

*/ inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; } /** *

Specifies whether the profile is enabled.

*/ inline CreateProfileRequest& WithEnabled(bool value) { SetEnabled(value); return *this;} /** *

A list of managed policy ARNs that apply to the vended session credentials. *

*/ inline const Aws::Vector& GetManagedPolicyArns() const{ return m_managedPolicyArns; } /** *

A list of managed policy ARNs that apply to the vended session credentials. *

*/ inline bool ManagedPolicyArnsHasBeenSet() const { return m_managedPolicyArnsHasBeenSet; } /** *

A list of managed policy ARNs that apply to the vended session credentials. *

*/ inline void SetManagedPolicyArns(const Aws::Vector& value) { m_managedPolicyArnsHasBeenSet = true; m_managedPolicyArns = value; } /** *

A list of managed policy ARNs that apply to the vended session credentials. *

*/ inline void SetManagedPolicyArns(Aws::Vector&& value) { m_managedPolicyArnsHasBeenSet = true; m_managedPolicyArns = std::move(value); } /** *

A list of managed policy ARNs that apply to the vended session credentials. *

*/ inline CreateProfileRequest& WithManagedPolicyArns(const Aws::Vector& value) { SetManagedPolicyArns(value); return *this;} /** *

A list of managed policy ARNs that apply to the vended session credentials. *

*/ inline CreateProfileRequest& WithManagedPolicyArns(Aws::Vector&& value) { SetManagedPolicyArns(std::move(value)); return *this;} /** *

A list of managed policy ARNs that apply to the vended session credentials. *

*/ inline CreateProfileRequest& AddManagedPolicyArns(const Aws::String& value) { m_managedPolicyArnsHasBeenSet = true; m_managedPolicyArns.push_back(value); return *this; } /** *

A list of managed policy ARNs that apply to the vended session credentials. *

*/ inline CreateProfileRequest& AddManagedPolicyArns(Aws::String&& value) { m_managedPolicyArnsHasBeenSet = true; m_managedPolicyArns.push_back(std::move(value)); return *this; } /** *

A list of managed policy ARNs that apply to the vended session credentials. *

*/ inline CreateProfileRequest& AddManagedPolicyArns(const char* value) { m_managedPolicyArnsHasBeenSet = true; m_managedPolicyArns.push_back(value); return *this; } /** *

The name of the profile.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the profile.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the profile.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the profile.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the profile.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the profile.

*/ inline CreateProfileRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the profile.

*/ inline CreateProfileRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the profile.

*/ inline CreateProfileRequest& WithName(const char* value) { SetName(value); return *this;} /** *

Specifies whether instance properties are required in temporary credential * requests with this profile.

*/ inline bool GetRequireInstanceProperties() const{ return m_requireInstanceProperties; } /** *

Specifies whether instance properties are required in temporary credential * requests with this profile.

*/ inline bool RequireInstancePropertiesHasBeenSet() const { return m_requireInstancePropertiesHasBeenSet; } /** *

Specifies whether instance properties are required in temporary credential * requests with this profile.

*/ inline void SetRequireInstanceProperties(bool value) { m_requireInstancePropertiesHasBeenSet = true; m_requireInstanceProperties = value; } /** *

Specifies whether instance properties are required in temporary credential * requests with this profile.

*/ inline CreateProfileRequest& WithRequireInstanceProperties(bool value) { SetRequireInstanceProperties(value); return *this;} /** *

A list of IAM roles that this profile can assume in a temporary credential * request.

*/ inline const Aws::Vector& GetRoleArns() const{ return m_roleArns; } /** *

A list of IAM roles that this profile can assume in a temporary credential * request.

*/ inline bool RoleArnsHasBeenSet() const { return m_roleArnsHasBeenSet; } /** *

A list of IAM roles that this profile can assume in a temporary credential * request.

*/ inline void SetRoleArns(const Aws::Vector& value) { m_roleArnsHasBeenSet = true; m_roleArns = value; } /** *

A list of IAM roles that this profile can assume in a temporary credential * request.

*/ inline void SetRoleArns(Aws::Vector&& value) { m_roleArnsHasBeenSet = true; m_roleArns = std::move(value); } /** *

A list of IAM roles that this profile can assume in a temporary credential * request.

*/ inline CreateProfileRequest& WithRoleArns(const Aws::Vector& value) { SetRoleArns(value); return *this;} /** *

A list of IAM roles that this profile can assume in a temporary credential * request.

*/ inline CreateProfileRequest& WithRoleArns(Aws::Vector&& value) { SetRoleArns(std::move(value)); return *this;} /** *

A list of IAM roles that this profile can assume in a temporary credential * request.

*/ inline CreateProfileRequest& AddRoleArns(const Aws::String& value) { m_roleArnsHasBeenSet = true; m_roleArns.push_back(value); return *this; } /** *

A list of IAM roles that this profile can assume in a temporary credential * request.

*/ inline CreateProfileRequest& AddRoleArns(Aws::String&& value) { m_roleArnsHasBeenSet = true; m_roleArns.push_back(std::move(value)); return *this; } /** *

A list of IAM roles that this profile can assume in a temporary credential * request.

*/ inline CreateProfileRequest& AddRoleArns(const char* value) { m_roleArnsHasBeenSet = true; m_roleArns.push_back(value); return *this; } /** *

A session policy that applies to the trust boundary of the vended session * credentials.

*/ inline const Aws::String& GetSessionPolicy() const{ return m_sessionPolicy; } /** *

A session policy that applies to the trust boundary of the vended session * credentials.

*/ inline bool SessionPolicyHasBeenSet() const { return m_sessionPolicyHasBeenSet; } /** *

A session policy that applies to the trust boundary of the vended session * credentials.

*/ inline void SetSessionPolicy(const Aws::String& value) { m_sessionPolicyHasBeenSet = true; m_sessionPolicy = value; } /** *

A session policy that applies to the trust boundary of the vended session * credentials.

*/ inline void SetSessionPolicy(Aws::String&& value) { m_sessionPolicyHasBeenSet = true; m_sessionPolicy = std::move(value); } /** *

A session policy that applies to the trust boundary of the vended session * credentials.

*/ inline void SetSessionPolicy(const char* value) { m_sessionPolicyHasBeenSet = true; m_sessionPolicy.assign(value); } /** *

A session policy that applies to the trust boundary of the vended session * credentials.

*/ inline CreateProfileRequest& WithSessionPolicy(const Aws::String& value) { SetSessionPolicy(value); return *this;} /** *

A session policy that applies to the trust boundary of the vended session * credentials.

*/ inline CreateProfileRequest& WithSessionPolicy(Aws::String&& value) { SetSessionPolicy(std::move(value)); return *this;} /** *

A session policy that applies to the trust boundary of the vended session * credentials.

*/ inline CreateProfileRequest& WithSessionPolicy(const char* value) { SetSessionPolicy(value); return *this;} /** *

The tags to attach to the profile.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

The tags to attach to the profile.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The tags to attach to the profile.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The tags to attach to the profile.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The tags to attach to the profile.

*/ inline CreateProfileRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

The tags to attach to the profile.

*/ inline CreateProfileRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

The tags to attach to the profile.

*/ inline CreateProfileRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

The tags to attach to the profile.

*/ inline CreateProfileRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: int m_durationSeconds; bool m_durationSecondsHasBeenSet = false; bool m_enabled; bool m_enabledHasBeenSet = false; Aws::Vector m_managedPolicyArns; bool m_managedPolicyArnsHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; bool m_requireInstanceProperties; bool m_requireInstancePropertiesHasBeenSet = false; Aws::Vector m_roleArns; bool m_roleArnsHasBeenSet = false; Aws::String m_sessionPolicy; bool m_sessionPolicyHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace RolesAnywhere } // namespace Aws