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

Information about the policy used to set the permissions boundary for an IAM * principal.

See Also:

AWS * API Reference

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

The ARN of the policy used to set the permissions boundary.

*/ inline const Aws::String& GetPermissionsBoundaryArn() const{ return m_permissionsBoundaryArn; } /** *

The ARN of the policy used to set the permissions boundary.

*/ inline bool PermissionsBoundaryArnHasBeenSet() const { return m_permissionsBoundaryArnHasBeenSet; } /** *

The ARN of the policy used to set the permissions boundary.

*/ inline void SetPermissionsBoundaryArn(const Aws::String& value) { m_permissionsBoundaryArnHasBeenSet = true; m_permissionsBoundaryArn = value; } /** *

The ARN of the policy used to set the permissions boundary.

*/ inline void SetPermissionsBoundaryArn(Aws::String&& value) { m_permissionsBoundaryArnHasBeenSet = true; m_permissionsBoundaryArn = std::move(value); } /** *

The ARN of the policy used to set the permissions boundary.

*/ inline void SetPermissionsBoundaryArn(const char* value) { m_permissionsBoundaryArnHasBeenSet = true; m_permissionsBoundaryArn.assign(value); } /** *

The ARN of the policy used to set the permissions boundary.

*/ inline AwsIamPermissionsBoundary& WithPermissionsBoundaryArn(const Aws::String& value) { SetPermissionsBoundaryArn(value); return *this;} /** *

The ARN of the policy used to set the permissions boundary.

*/ inline AwsIamPermissionsBoundary& WithPermissionsBoundaryArn(Aws::String&& value) { SetPermissionsBoundaryArn(std::move(value)); return *this;} /** *

The ARN of the policy used to set the permissions boundary.

*/ inline AwsIamPermissionsBoundary& WithPermissionsBoundaryArn(const char* value) { SetPermissionsBoundaryArn(value); return *this;} /** *

The usage type for the permissions boundary.

*/ inline const Aws::String& GetPermissionsBoundaryType() const{ return m_permissionsBoundaryType; } /** *

The usage type for the permissions boundary.

*/ inline bool PermissionsBoundaryTypeHasBeenSet() const { return m_permissionsBoundaryTypeHasBeenSet; } /** *

The usage type for the permissions boundary.

*/ inline void SetPermissionsBoundaryType(const Aws::String& value) { m_permissionsBoundaryTypeHasBeenSet = true; m_permissionsBoundaryType = value; } /** *

The usage type for the permissions boundary.

*/ inline void SetPermissionsBoundaryType(Aws::String&& value) { m_permissionsBoundaryTypeHasBeenSet = true; m_permissionsBoundaryType = std::move(value); } /** *

The usage type for the permissions boundary.

*/ inline void SetPermissionsBoundaryType(const char* value) { m_permissionsBoundaryTypeHasBeenSet = true; m_permissionsBoundaryType.assign(value); } /** *

The usage type for the permissions boundary.

*/ inline AwsIamPermissionsBoundary& WithPermissionsBoundaryType(const Aws::String& value) { SetPermissionsBoundaryType(value); return *this;} /** *

The usage type for the permissions boundary.

*/ inline AwsIamPermissionsBoundary& WithPermissionsBoundaryType(Aws::String&& value) { SetPermissionsBoundaryType(std::move(value)); return *this;} /** *

The usage type for the permissions boundary.

*/ inline AwsIamPermissionsBoundary& WithPermissionsBoundaryType(const char* value) { SetPermissionsBoundaryType(value); return *this;} private: Aws::String m_permissionsBoundaryArn; bool m_permissionsBoundaryArnHasBeenSet = false; Aws::String m_permissionsBoundaryType; bool m_permissionsBoundaryTypeHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws