/** * 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 SSOAdmin { namespace Model { /** */ class CreatePermissionSetRequest : public SSOAdminRequest { public: AWS_SSOADMIN_API CreatePermissionSetRequest(); // 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 "CreatePermissionSet"; } AWS_SSOADMIN_API Aws::String SerializePayload() const override; AWS_SSOADMIN_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the PermissionSet.

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

The name of the PermissionSet.

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

The name of the PermissionSet.

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

The name of the PermissionSet.

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

The name of the PermissionSet.

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

The name of the PermissionSet.

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

The name of the PermissionSet.

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

The name of the PermissionSet.

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

The description of the PermissionSet.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description of the PermissionSet.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The description of the PermissionSet.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The description of the PermissionSet.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The description of the PermissionSet.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The description of the PermissionSet.

*/ inline CreatePermissionSetRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description of the PermissionSet.

*/ inline CreatePermissionSetRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description of the PermissionSet.

*/ inline CreatePermissionSetRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The ARN of the IAM Identity Center instance under which the operation will be * executed. For more information about ARNs, see Amazon Resource Names * (ARNs) and AWS Service Namespaces in the AWS General Reference.

*/ inline const Aws::String& GetInstanceArn() const{ return m_instanceArn; } /** *

The ARN of the IAM Identity Center instance under which the operation will be * executed. For more information about ARNs, see Amazon Resource Names * (ARNs) and AWS Service Namespaces in the AWS General Reference.

*/ inline bool InstanceArnHasBeenSet() const { return m_instanceArnHasBeenSet; } /** *

The ARN of the IAM Identity Center instance under which the operation will be * executed. For more information about ARNs, see Amazon Resource Names * (ARNs) and AWS Service Namespaces in the AWS General Reference.

*/ inline void SetInstanceArn(const Aws::String& value) { m_instanceArnHasBeenSet = true; m_instanceArn = value; } /** *

The ARN of the IAM Identity Center instance under which the operation will be * executed. For more information about ARNs, see Amazon Resource Names * (ARNs) and AWS Service Namespaces in the AWS General Reference.

*/ inline void SetInstanceArn(Aws::String&& value) { m_instanceArnHasBeenSet = true; m_instanceArn = std::move(value); } /** *

The ARN of the IAM Identity Center instance under which the operation will be * executed. For more information about ARNs, see Amazon Resource Names * (ARNs) and AWS Service Namespaces in the AWS General Reference.

*/ inline void SetInstanceArn(const char* value) { m_instanceArnHasBeenSet = true; m_instanceArn.assign(value); } /** *

The ARN of the IAM Identity Center instance under which the operation will be * executed. For more information about ARNs, see Amazon Resource Names * (ARNs) and AWS Service Namespaces in the AWS General Reference.

*/ inline CreatePermissionSetRequest& WithInstanceArn(const Aws::String& value) { SetInstanceArn(value); return *this;} /** *

The ARN of the IAM Identity Center instance under which the operation will be * executed. For more information about ARNs, see Amazon Resource Names * (ARNs) and AWS Service Namespaces in the AWS General Reference.

*/ inline CreatePermissionSetRequest& WithInstanceArn(Aws::String&& value) { SetInstanceArn(std::move(value)); return *this;} /** *

The ARN of the IAM Identity Center instance under which the operation will be * executed. For more information about ARNs, see Amazon Resource Names * (ARNs) and AWS Service Namespaces in the AWS General Reference.

*/ inline CreatePermissionSetRequest& WithInstanceArn(const char* value) { SetInstanceArn(value); return *this;} /** *

The length of time that the application user sessions are valid in the * ISO-8601 standard.

*/ inline const Aws::String& GetSessionDuration() const{ return m_sessionDuration; } /** *

The length of time that the application user sessions are valid in the * ISO-8601 standard.

*/ inline bool SessionDurationHasBeenSet() const { return m_sessionDurationHasBeenSet; } /** *

The length of time that the application user sessions are valid in the * ISO-8601 standard.

*/ inline void SetSessionDuration(const Aws::String& value) { m_sessionDurationHasBeenSet = true; m_sessionDuration = value; } /** *

The length of time that the application user sessions are valid in the * ISO-8601 standard.

*/ inline void SetSessionDuration(Aws::String&& value) { m_sessionDurationHasBeenSet = true; m_sessionDuration = std::move(value); } /** *

The length of time that the application user sessions are valid in the * ISO-8601 standard.

*/ inline void SetSessionDuration(const char* value) { m_sessionDurationHasBeenSet = true; m_sessionDuration.assign(value); } /** *

The length of time that the application user sessions are valid in the * ISO-8601 standard.

*/ inline CreatePermissionSetRequest& WithSessionDuration(const Aws::String& value) { SetSessionDuration(value); return *this;} /** *

The length of time that the application user sessions are valid in the * ISO-8601 standard.

*/ inline CreatePermissionSetRequest& WithSessionDuration(Aws::String&& value) { SetSessionDuration(std::move(value)); return *this;} /** *

The length of time that the application user sessions are valid in the * ISO-8601 standard.

*/ inline CreatePermissionSetRequest& WithSessionDuration(const char* value) { SetSessionDuration(value); return *this;} /** *

Used to redirect users within the application during the federation * authentication process.

*/ inline const Aws::String& GetRelayState() const{ return m_relayState; } /** *

Used to redirect users within the application during the federation * authentication process.

*/ inline bool RelayStateHasBeenSet() const { return m_relayStateHasBeenSet; } /** *

Used to redirect users within the application during the federation * authentication process.

*/ inline void SetRelayState(const Aws::String& value) { m_relayStateHasBeenSet = true; m_relayState = value; } /** *

Used to redirect users within the application during the federation * authentication process.

*/ inline void SetRelayState(Aws::String&& value) { m_relayStateHasBeenSet = true; m_relayState = std::move(value); } /** *

Used to redirect users within the application during the federation * authentication process.

*/ inline void SetRelayState(const char* value) { m_relayStateHasBeenSet = true; m_relayState.assign(value); } /** *

Used to redirect users within the application during the federation * authentication process.

*/ inline CreatePermissionSetRequest& WithRelayState(const Aws::String& value) { SetRelayState(value); return *this;} /** *

Used to redirect users within the application during the federation * authentication process.

*/ inline CreatePermissionSetRequest& WithRelayState(Aws::String&& value) { SetRelayState(std::move(value)); return *this;} /** *

Used to redirect users within the application during the federation * authentication process.

*/ inline CreatePermissionSetRequest& WithRelayState(const char* value) { SetRelayState(value); return *this;} /** *

The tags to attach to the new PermissionSet.

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

The tags to attach to the new PermissionSet.

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

The tags to attach to the new PermissionSet.

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

The tags to attach to the new PermissionSet.

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

The tags to attach to the new PermissionSet.

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

The tags to attach to the new PermissionSet.

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

The tags to attach to the new PermissionSet.

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

The tags to attach to the new PermissionSet.

*/ inline CreatePermissionSetRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_instanceArn; bool m_instanceArnHasBeenSet = false; Aws::String m_sessionDuration; bool m_sessionDurationHasBeenSet = false; Aws::String m_relayState; bool m_relayStateHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace SSOAdmin } // namespace Aws