AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
SecurityConfiguration.h
1
6#pragma once
7#include <aws/emr-containers/EMRContainers_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/emr-containers/model/SecurityConfigurationData.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace EMRContainers
25{
26namespace Model
27{
28
39 {
40 public:
41 AWS_EMRCONTAINERS_API SecurityConfiguration() = default;
42 AWS_EMRCONTAINERS_API SecurityConfiguration(Aws::Utils::Json::JsonView jsonValue);
44 AWS_EMRCONTAINERS_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::String& GetId() const { return m_id; }
52 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
53 template<typename IdT = Aws::String>
54 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
55 template<typename IdT = Aws::String>
56 SecurityConfiguration& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
58
60
63 inline const Aws::String& GetName() const { return m_name; }
64 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
65 template<typename NameT = Aws::String>
66 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
67 template<typename NameT = Aws::String>
68 SecurityConfiguration& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
70
72
75 inline const Aws::String& GetArn() const { return m_arn; }
76 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
77 template<typename ArnT = Aws::String>
78 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
79 template<typename ArnT = Aws::String>
80 SecurityConfiguration& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
82
84
87 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
88 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
89 template<typename CreatedAtT = Aws::Utils::DateTime>
90 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
91 template<typename CreatedAtT = Aws::Utils::DateTime>
92 SecurityConfiguration& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
94
96
99 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
100 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
101 template<typename CreatedByT = Aws::String>
102 void SetCreatedBy(CreatedByT&& value) { m_createdByHasBeenSet = true; m_createdBy = std::forward<CreatedByT>(value); }
103 template<typename CreatedByT = Aws::String>
104 SecurityConfiguration& WithCreatedBy(CreatedByT&& value) { SetCreatedBy(std::forward<CreatedByT>(value)); return *this;}
106
108
111 inline const SecurityConfigurationData& GetSecurityConfigurationData() const { return m_securityConfigurationData; }
112 inline bool SecurityConfigurationDataHasBeenSet() const { return m_securityConfigurationDataHasBeenSet; }
113 template<typename SecurityConfigurationDataT = SecurityConfigurationData>
114 void SetSecurityConfigurationData(SecurityConfigurationDataT&& value) { m_securityConfigurationDataHasBeenSet = true; m_securityConfigurationData = std::forward<SecurityConfigurationDataT>(value); }
115 template<typename SecurityConfigurationDataT = SecurityConfigurationData>
116 SecurityConfiguration& WithSecurityConfigurationData(SecurityConfigurationDataT&& value) { SetSecurityConfigurationData(std::forward<SecurityConfigurationDataT>(value)); return *this;}
118
120
123 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
124 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
125 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
126 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
127 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
128 SecurityConfiguration& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
129 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
130 SecurityConfiguration& AddTags(TagsKeyT&& key, TagsValueT&& value) {
131 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
132 }
134 private:
135
136 Aws::String m_id;
137 bool m_idHasBeenSet = false;
138
139 Aws::String m_name;
140 bool m_nameHasBeenSet = false;
141
142 Aws::String m_arn;
143 bool m_arnHasBeenSet = false;
144
145 Aws::Utils::DateTime m_createdAt{};
146 bool m_createdAtHasBeenSet = false;
147
148 Aws::String m_createdBy;
149 bool m_createdByHasBeenSet = false;
150
151 SecurityConfigurationData m_securityConfigurationData;
152 bool m_securityConfigurationDataHasBeenSet = false;
153
155 bool m_tagsHasBeenSet = false;
156 };
157
158} // namespace Model
159} // namespace EMRContainers
160} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetTags() const
SecurityConfiguration & WithArn(ArnT &&value)
SecurityConfiguration & WithCreatedAt(CreatedAtT &&value)
SecurityConfiguration & WithTags(TagsT &&value)
SecurityConfiguration & WithCreatedBy(CreatedByT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
SecurityConfiguration & WithName(NameT &&value)
AWS_EMRCONTAINERS_API SecurityConfiguration(Aws::Utils::Json::JsonView jsonValue)
SecurityConfiguration & WithSecurityConfigurationData(SecurityConfigurationDataT &&value)
AWS_EMRCONTAINERS_API Aws::Utils::Json::JsonValue Jsonize() const
SecurityConfiguration & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_EMRCONTAINERS_API SecurityConfiguration()=default
void SetSecurityConfigurationData(SecurityConfigurationDataT &&value)
const SecurityConfigurationData & GetSecurityConfigurationData() const
AWS_EMRCONTAINERS_API SecurityConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue