/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace RolesAnywhere { namespace Model { /** */ class UpdateProfileRequest : public RolesAnywhereRequest { public: AWS_ROLESANYWHERE_API UpdateProfileRequest(); // 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 "UpdateProfile"; } 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 UpdateProfileRequest& WithDurationSeconds(int value) { SetDurationSeconds(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 UpdateProfileRequest& WithManagedPolicyArns(const Aws::Vector& value) { SetManagedPolicyArns(value); return *this;} /** *

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

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

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

*/ inline UpdateProfileRequest& 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 UpdateProfileRequest& 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 UpdateProfileRequest& 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 UpdateProfileRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the profile.

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

The name of the profile.

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

The unique identifier of the profile.

*/ inline const Aws::String& GetProfileId() const{ return m_profileId; } /** *

The unique identifier of the profile.

*/ inline bool ProfileIdHasBeenSet() const { return m_profileIdHasBeenSet; } /** *

The unique identifier of the profile.

*/ inline void SetProfileId(const Aws::String& value) { m_profileIdHasBeenSet = true; m_profileId = value; } /** *

The unique identifier of the profile.

*/ inline void SetProfileId(Aws::String&& value) { m_profileIdHasBeenSet = true; m_profileId = std::move(value); } /** *

The unique identifier of the profile.

*/ inline void SetProfileId(const char* value) { m_profileIdHasBeenSet = true; m_profileId.assign(value); } /** *

The unique identifier of the profile.

*/ inline UpdateProfileRequest& WithProfileId(const Aws::String& value) { SetProfileId(value); return *this;} /** *

The unique identifier of the profile.

*/ inline UpdateProfileRequest& WithProfileId(Aws::String&& value) { SetProfileId(std::move(value)); return *this;} /** *

The unique identifier of the profile.

*/ inline UpdateProfileRequest& WithProfileId(const char* value) { SetProfileId(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 UpdateProfileRequest& 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 UpdateProfileRequest& 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 UpdateProfileRequest& 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 UpdateProfileRequest& 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 UpdateProfileRequest& 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 UpdateProfileRequest& WithSessionPolicy(const Aws::String& value) { SetSessionPolicy(value); return *this;} /** *

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

*/ inline UpdateProfileRequest& 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 UpdateProfileRequest& WithSessionPolicy(const char* value) { SetSessionPolicy(value); return *this;} private: int m_durationSeconds; bool m_durationSecondsHasBeenSet = false; Aws::Vector m_managedPolicyArns; bool m_managedPolicyArnsHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_profileId; bool m_profileIdHasBeenSet = false; Aws::Vector m_roleArns; bool m_roleArnsHasBeenSet = false; Aws::String m_sessionPolicy; bool m_sessionPolicyHasBeenSet = false; }; } // namespace Model } // namespace RolesAnywhere } // namespace Aws