/** * 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 { /** *

A version of an IAM policy.

See Also:

AWS * API Reference

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

The identifier of the policy version.

*/ inline const Aws::String& GetVersionId() const{ return m_versionId; } /** *

The identifier of the policy version.

*/ inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; } /** *

The identifier of the policy version.

*/ inline void SetVersionId(const Aws::String& value) { m_versionIdHasBeenSet = true; m_versionId = value; } /** *

The identifier of the policy version.

*/ inline void SetVersionId(Aws::String&& value) { m_versionIdHasBeenSet = true; m_versionId = std::move(value); } /** *

The identifier of the policy version.

*/ inline void SetVersionId(const char* value) { m_versionIdHasBeenSet = true; m_versionId.assign(value); } /** *

The identifier of the policy version.

*/ inline AwsIamPolicyVersion& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;} /** *

The identifier of the policy version.

*/ inline AwsIamPolicyVersion& WithVersionId(Aws::String&& value) { SetVersionId(std::move(value)); return *this;} /** *

The identifier of the policy version.

*/ inline AwsIamPolicyVersion& WithVersionId(const char* value) { SetVersionId(value); return *this;} /** *

Whether the version is the default version.

*/ inline bool GetIsDefaultVersion() const{ return m_isDefaultVersion; } /** *

Whether the version is the default version.

*/ inline bool IsDefaultVersionHasBeenSet() const { return m_isDefaultVersionHasBeenSet; } /** *

Whether the version is the default version.

*/ inline void SetIsDefaultVersion(bool value) { m_isDefaultVersionHasBeenSet = true; m_isDefaultVersion = value; } /** *

Whether the version is the default version.

*/ inline AwsIamPolicyVersion& WithIsDefaultVersion(bool value) { SetIsDefaultVersion(value); return *this;} /** *

Indicates when the version was created.

Uses the * date-time format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline const Aws::String& GetCreateDate() const{ return m_createDate; } /** *

Indicates when the version was created.

Uses the * date-time format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; } /** *

Indicates when the version was created.

Uses the * date-time format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline void SetCreateDate(const Aws::String& value) { m_createDateHasBeenSet = true; m_createDate = value; } /** *

Indicates when the version was created.

Uses the * date-time format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline void SetCreateDate(Aws::String&& value) { m_createDateHasBeenSet = true; m_createDate = std::move(value); } /** *

Indicates when the version was created.

Uses the * date-time format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline void SetCreateDate(const char* value) { m_createDateHasBeenSet = true; m_createDate.assign(value); } /** *

Indicates when the version was created.

Uses the * date-time format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline AwsIamPolicyVersion& WithCreateDate(const Aws::String& value) { SetCreateDate(value); return *this;} /** *

Indicates when the version was created.

Uses the * date-time format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline AwsIamPolicyVersion& WithCreateDate(Aws::String&& value) { SetCreateDate(std::move(value)); return *this;} /** *

Indicates when the version was created.

Uses the * date-time format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline AwsIamPolicyVersion& WithCreateDate(const char* value) { SetCreateDate(value); return *this;} private: Aws::String m_versionId; bool m_versionIdHasBeenSet = false; bool m_isDefaultVersion; bool m_isDefaultVersionHasBeenSet = false; Aws::String m_createDate; bool m_createDateHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws