/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SSOAdmin { namespace Model { /** *

An entity that contains IAM policies.

See Also:

AWS * API Reference

*/ class PermissionSet { public: AWS_SSOADMIN_API PermissionSet(); AWS_SSOADMIN_API PermissionSet(Aws::Utils::Json::JsonView jsonValue); AWS_SSOADMIN_API PermissionSet& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SSOADMIN_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The name of the permission set.

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

The name of the permission set.

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

The name of the permission set.

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

The name of the permission set.

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

The name of the permission set.

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

The name of the permission set.

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

The name of the permission set.

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

The name of the permission set.

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

The ARN of the permission set. For more information about ARNs, see Amazon Resource Names * (ARNs) and AWS Service Namespaces in the AWS General Reference.

*/ inline const Aws::String& GetPermissionSetArn() const{ return m_permissionSetArn; } /** *

The ARN of the permission set. For more information about ARNs, see Amazon Resource Names * (ARNs) and AWS Service Namespaces in the AWS General Reference.

*/ inline bool PermissionSetArnHasBeenSet() const { return m_permissionSetArnHasBeenSet; } /** *

The ARN of the permission set. For more information about ARNs, see Amazon Resource Names * (ARNs) and AWS Service Namespaces in the AWS General Reference.

*/ inline void SetPermissionSetArn(const Aws::String& value) { m_permissionSetArnHasBeenSet = true; m_permissionSetArn = value; } /** *

The ARN of the permission set. For more information about ARNs, see Amazon Resource Names * (ARNs) and AWS Service Namespaces in the AWS General Reference.

*/ inline void SetPermissionSetArn(Aws::String&& value) { m_permissionSetArnHasBeenSet = true; m_permissionSetArn = std::move(value); } /** *

The ARN of the permission set. For more information about ARNs, see Amazon Resource Names * (ARNs) and AWS Service Namespaces in the AWS General Reference.

*/ inline void SetPermissionSetArn(const char* value) { m_permissionSetArnHasBeenSet = true; m_permissionSetArn.assign(value); } /** *

The ARN of the permission set. For more information about ARNs, see Amazon Resource Names * (ARNs) and AWS Service Namespaces in the AWS General Reference.

*/ inline PermissionSet& WithPermissionSetArn(const Aws::String& value) { SetPermissionSetArn(value); return *this;} /** *

The ARN of the permission set. For more information about ARNs, see Amazon Resource Names * (ARNs) and AWS Service Namespaces in the AWS General Reference.

*/ inline PermissionSet& WithPermissionSetArn(Aws::String&& value) { SetPermissionSetArn(std::move(value)); return *this;} /** *

The ARN of the permission set. For more information about ARNs, see Amazon Resource Names * (ARNs) and AWS Service Namespaces in the AWS General Reference.

*/ inline PermissionSet& WithPermissionSetArn(const char* value) { SetPermissionSetArn(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 PermissionSet& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description of the PermissionSet.

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

The description of the PermissionSet.

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

The date that the permission set was created.

*/ inline const Aws::Utils::DateTime& GetCreatedDate() const{ return m_createdDate; } /** *

The date that the permission set was created.

*/ inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; } /** *

The date that the permission set was created.

*/ inline void SetCreatedDate(const Aws::Utils::DateTime& value) { m_createdDateHasBeenSet = true; m_createdDate = value; } /** *

The date that the permission set was created.

*/ inline void SetCreatedDate(Aws::Utils::DateTime&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::move(value); } /** *

The date that the permission set was created.

*/ inline PermissionSet& WithCreatedDate(const Aws::Utils::DateTime& value) { SetCreatedDate(value); return *this;} /** *

The date that the permission set was created.

*/ inline PermissionSet& WithCreatedDate(Aws::Utils::DateTime&& value) { SetCreatedDate(std::move(value)); return *this;} /** *

The length of time that the application user sessions are valid for 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 for in the * ISO-8601 standard.

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

The length of time that the application user sessions are valid for 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 for 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 for 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 for in the * ISO-8601 standard.

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

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

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

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

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

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

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

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

*/ inline PermissionSet& WithRelayState(const char* value) { SetRelayState(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_permissionSetArn; bool m_permissionSetArnHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Utils::DateTime m_createdDate; bool m_createdDateHasBeenSet = false; Aws::String m_sessionDuration; bool m_sessionDurationHasBeenSet = false; Aws::String m_relayState; bool m_relayStateHasBeenSet = false; }; } // namespace Model } // namespace SSOAdmin } // namespace Aws