AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
AwsIamPolicyVersion.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/securityhub/SecurityHub_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SecurityHub {
20namespace Model {
21
28 public:
29 AWS_SECURITYHUB_API AwsIamPolicyVersion() = default;
30 AWS_SECURITYHUB_API AwsIamPolicyVersion(Aws::Utils::Json::JsonView jsonValue);
32 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetVersionId() const { return m_versionId; }
39 inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
40 template <typename VersionIdT = Aws::String>
41 void SetVersionId(VersionIdT&& value) {
42 m_versionIdHasBeenSet = true;
43 m_versionId = std::forward<VersionIdT>(value);
44 }
45 template <typename VersionIdT = Aws::String>
46 AwsIamPolicyVersion& WithVersionId(VersionIdT&& value) {
47 SetVersionId(std::forward<VersionIdT>(value));
48 return *this;
49 }
51
53
56 inline bool GetIsDefaultVersion() const { return m_isDefaultVersion; }
57 inline bool IsDefaultVersionHasBeenSet() const { return m_isDefaultVersionHasBeenSet; }
58 inline void SetIsDefaultVersion(bool value) {
59 m_isDefaultVersionHasBeenSet = true;
60 m_isDefaultVersion = value;
61 }
64 return *this;
65 }
67
69
74 inline const Aws::String& GetCreateDate() const { return m_createDate; }
75 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
76 template <typename CreateDateT = Aws::String>
77 void SetCreateDate(CreateDateT&& value) {
78 m_createDateHasBeenSet = true;
79 m_createDate = std::forward<CreateDateT>(value);
80 }
81 template <typename CreateDateT = Aws::String>
82 AwsIamPolicyVersion& WithCreateDate(CreateDateT&& value) {
83 SetCreateDate(std::forward<CreateDateT>(value));
84 return *this;
85 }
87 private:
88 Aws::String m_versionId;
89
90 bool m_isDefaultVersion{false};
91
92 Aws::String m_createDate;
93 bool m_versionIdHasBeenSet = false;
94 bool m_isDefaultVersionHasBeenSet = false;
95 bool m_createDateHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace SecurityHub
100} // namespace Aws
AWS_SECURITYHUB_API AwsIamPolicyVersion & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API AwsIamPolicyVersion()=default
AwsIamPolicyVersion & WithVersionId(VersionIdT &&value)
AwsIamPolicyVersion & WithCreateDate(CreateDateT &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AwsIamPolicyVersion & WithIsDefaultVersion(bool 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