AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AwsIamPolicyVersion.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SecurityHub
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_SECURITYHUB_API AwsIamPolicyVersion();
35 AWS_SECURITYHUB_API AwsIamPolicyVersion(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetVersionId() const{ return m_versionId; }
45 inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
46 inline void SetVersionId(const Aws::String& value) { m_versionIdHasBeenSet = true; m_versionId = value; }
47 inline void SetVersionId(Aws::String&& value) { m_versionIdHasBeenSet = true; m_versionId = std::move(value); }
48 inline void SetVersionId(const char* value) { m_versionIdHasBeenSet = true; m_versionId.assign(value); }
49 inline AwsIamPolicyVersion& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;}
50 inline AwsIamPolicyVersion& WithVersionId(Aws::String&& value) { SetVersionId(std::move(value)); return *this;}
51 inline AwsIamPolicyVersion& WithVersionId(const char* value) { SetVersionId(value); return *this;}
53
55
58 inline bool GetIsDefaultVersion() const{ return m_isDefaultVersion; }
59 inline bool IsDefaultVersionHasBeenSet() const { return m_isDefaultVersionHasBeenSet; }
60 inline void SetIsDefaultVersion(bool value) { m_isDefaultVersionHasBeenSet = true; m_isDefaultVersion = value; }
61 inline AwsIamPolicyVersion& WithIsDefaultVersion(bool value) { SetIsDefaultVersion(value); return *this;}
63
65
82 inline const Aws::String& GetCreateDate() const{ return m_createDate; }
83 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
84 inline void SetCreateDate(const Aws::String& value) { m_createDateHasBeenSet = true; m_createDate = value; }
85 inline void SetCreateDate(Aws::String&& value) { m_createDateHasBeenSet = true; m_createDate = std::move(value); }
86 inline void SetCreateDate(const char* value) { m_createDateHasBeenSet = true; m_createDate.assign(value); }
87 inline AwsIamPolicyVersion& WithCreateDate(const Aws::String& value) { SetCreateDate(value); return *this;}
88 inline AwsIamPolicyVersion& WithCreateDate(Aws::String&& value) { SetCreateDate(std::move(value)); return *this;}
89 inline AwsIamPolicyVersion& WithCreateDate(const char* value) { SetCreateDate(value); return *this;}
91 private:
92
93 Aws::String m_versionId;
94 bool m_versionIdHasBeenSet = false;
95
96 bool m_isDefaultVersion;
97 bool m_isDefaultVersionHasBeenSet = false;
98
99 Aws::String m_createDate;
100 bool m_createDateHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace SecurityHub
105} // namespace Aws
AWS_SECURITYHUB_API AwsIamPolicyVersion & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsIamPolicyVersion & WithVersionId(const Aws::String &value)
AwsIamPolicyVersion & WithCreateDate(const Aws::String &value)
AwsIamPolicyVersion & WithVersionId(const char *value)
AwsIamPolicyVersion & WithCreateDate(Aws::String &&value)
AwsIamPolicyVersion & WithVersionId(Aws::String &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AwsIamPolicyVersion & WithIsDefaultVersion(bool value)
AwsIamPolicyVersion & WithCreateDate(const char *value)
AWS_SECURITYHUB_API AwsIamPolicyVersion(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue