189 lines
6.8 KiB
C++
189 lines
6.8 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/securityhub/SecurityHub_EXPORTS.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
class JsonView;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace SecurityHub
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>A version of an IAM policy.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/AwsIamPolicyVersion">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_SECURITYHUB_API AwsIamPolicyVersion
|
|
{
|
|
public:
|
|
AwsIamPolicyVersion();
|
|
AwsIamPolicyVersion(Aws::Utils::Json::JsonView jsonValue);
|
|
AwsIamPolicyVersion& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|
|
|
|
|
/**
|
|
* <p>The identifier of the policy version.</p>
|
|
*/
|
|
inline const Aws::String& GetVersionId() const{ return m_versionId; }
|
|
|
|
/**
|
|
* <p>The identifier of the policy version.</p>
|
|
*/
|
|
inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The identifier of the policy version.</p>
|
|
*/
|
|
inline void SetVersionId(const Aws::String& value) { m_versionIdHasBeenSet = true; m_versionId = value; }
|
|
|
|
/**
|
|
* <p>The identifier of the policy version.</p>
|
|
*/
|
|
inline void SetVersionId(Aws::String&& value) { m_versionIdHasBeenSet = true; m_versionId = std::move(value); }
|
|
|
|
/**
|
|
* <p>The identifier of the policy version.</p>
|
|
*/
|
|
inline void SetVersionId(const char* value) { m_versionIdHasBeenSet = true; m_versionId.assign(value); }
|
|
|
|
/**
|
|
* <p>The identifier of the policy version.</p>
|
|
*/
|
|
inline AwsIamPolicyVersion& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;}
|
|
|
|
/**
|
|
* <p>The identifier of the policy version.</p>
|
|
*/
|
|
inline AwsIamPolicyVersion& WithVersionId(Aws::String&& value) { SetVersionId(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The identifier of the policy version.</p>
|
|
*/
|
|
inline AwsIamPolicyVersion& WithVersionId(const char* value) { SetVersionId(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>Whether the version is the default version.</p>
|
|
*/
|
|
inline bool GetIsDefaultVersion() const{ return m_isDefaultVersion; }
|
|
|
|
/**
|
|
* <p>Whether the version is the default version.</p>
|
|
*/
|
|
inline bool IsDefaultVersionHasBeenSet() const { return m_isDefaultVersionHasBeenSet; }
|
|
|
|
/**
|
|
* <p>Whether the version is the default version.</p>
|
|
*/
|
|
inline void SetIsDefaultVersion(bool value) { m_isDefaultVersionHasBeenSet = true; m_isDefaultVersion = value; }
|
|
|
|
/**
|
|
* <p>Whether the version is the default version.</p>
|
|
*/
|
|
inline AwsIamPolicyVersion& WithIsDefaultVersion(bool value) { SetIsDefaultVersion(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>Indicates when the version was created.</p> <p>Uses the
|
|
* <code>date-time</code> format specified in <a
|
|
* href="https://tools.ietf.org/html/rfc3339#section-5.6">RFC 3339 section 5.6,
|
|
* Internet Date/Time Format</a>. The value cannot contain spaces. For example,
|
|
* <code>2020-03-22T13:22:13.933Z</code>.</p>
|
|
*/
|
|
inline const Aws::String& GetCreateDate() const{ return m_createDate; }
|
|
|
|
/**
|
|
* <p>Indicates when the version was created.</p> <p>Uses the
|
|
* <code>date-time</code> format specified in <a
|
|
* href="https://tools.ietf.org/html/rfc3339#section-5.6">RFC 3339 section 5.6,
|
|
* Internet Date/Time Format</a>. The value cannot contain spaces. For example,
|
|
* <code>2020-03-22T13:22:13.933Z</code>.</p>
|
|
*/
|
|
inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
|
|
|
|
/**
|
|
* <p>Indicates when the version was created.</p> <p>Uses the
|
|
* <code>date-time</code> format specified in <a
|
|
* href="https://tools.ietf.org/html/rfc3339#section-5.6">RFC 3339 section 5.6,
|
|
* Internet Date/Time Format</a>. The value cannot contain spaces. For example,
|
|
* <code>2020-03-22T13:22:13.933Z</code>.</p>
|
|
*/
|
|
inline void SetCreateDate(const Aws::String& value) { m_createDateHasBeenSet = true; m_createDate = value; }
|
|
|
|
/**
|
|
* <p>Indicates when the version was created.</p> <p>Uses the
|
|
* <code>date-time</code> format specified in <a
|
|
* href="https://tools.ietf.org/html/rfc3339#section-5.6">RFC 3339 section 5.6,
|
|
* Internet Date/Time Format</a>. The value cannot contain spaces. For example,
|
|
* <code>2020-03-22T13:22:13.933Z</code>.</p>
|
|
*/
|
|
inline void SetCreateDate(Aws::String&& value) { m_createDateHasBeenSet = true; m_createDate = std::move(value); }
|
|
|
|
/**
|
|
* <p>Indicates when the version was created.</p> <p>Uses the
|
|
* <code>date-time</code> format specified in <a
|
|
* href="https://tools.ietf.org/html/rfc3339#section-5.6">RFC 3339 section 5.6,
|
|
* Internet Date/Time Format</a>. The value cannot contain spaces. For example,
|
|
* <code>2020-03-22T13:22:13.933Z</code>.</p>
|
|
*/
|
|
inline void SetCreateDate(const char* value) { m_createDateHasBeenSet = true; m_createDate.assign(value); }
|
|
|
|
/**
|
|
* <p>Indicates when the version was created.</p> <p>Uses the
|
|
* <code>date-time</code> format specified in <a
|
|
* href="https://tools.ietf.org/html/rfc3339#section-5.6">RFC 3339 section 5.6,
|
|
* Internet Date/Time Format</a>. The value cannot contain spaces. For example,
|
|
* <code>2020-03-22T13:22:13.933Z</code>.</p>
|
|
*/
|
|
inline AwsIamPolicyVersion& WithCreateDate(const Aws::String& value) { SetCreateDate(value); return *this;}
|
|
|
|
/**
|
|
* <p>Indicates when the version was created.</p> <p>Uses the
|
|
* <code>date-time</code> format specified in <a
|
|
* href="https://tools.ietf.org/html/rfc3339#section-5.6">RFC 3339 section 5.6,
|
|
* Internet Date/Time Format</a>. The value cannot contain spaces. For example,
|
|
* <code>2020-03-22T13:22:13.933Z</code>.</p>
|
|
*/
|
|
inline AwsIamPolicyVersion& WithCreateDate(Aws::String&& value) { SetCreateDate(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>Indicates when the version was created.</p> <p>Uses the
|
|
* <code>date-time</code> format specified in <a
|
|
* href="https://tools.ietf.org/html/rfc3339#section-5.6">RFC 3339 section 5.6,
|
|
* Internet Date/Time Format</a>. The value cannot contain spaces. For example,
|
|
* <code>2020-03-22T13:22:13.933Z</code>.</p>
|
|
*/
|
|
inline AwsIamPolicyVersion& WithCreateDate(const char* value) { SetCreateDate(value); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_versionId;
|
|
bool m_versionIdHasBeenSet;
|
|
|
|
bool m_isDefaultVersion;
|
|
bool m_isDefaultVersionHasBeenSet;
|
|
|
|
Aws::String m_createDate;
|
|
bool m_createDateHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace SecurityHub
|
|
} // namespace Aws
|