AWS SDK for C++

AWS SDK for C++ Version 1.11.900

Loading...
Searching...
No Matches
AccessProfileSummary.h
1
6#pragma once
7#include <aws/cloudwatchomni/CloudWatchOmni_EXPORTS.h>
8#include <aws/cloudwatchomni/model/AccessProfileType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/crt/cbor/Cbor.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace CloudWatchOmni {
21namespace Model {
22
30 public:
31 AWS_CLOUDWATCHOMNI_API AccessProfileSummary() = default;
32 AWS_CLOUDWATCHOMNI_API AccessProfileSummary(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_CLOUDWATCHOMNI_API AccessProfileSummary& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_CLOUDWATCHOMNI_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
35
37
40 inline const Aws::String& GetProfileId() const { return m_profileId; }
41 inline bool ProfileIdHasBeenSet() const { return m_profileIdHasBeenSet; }
42 template <typename ProfileIdT = Aws::String>
43 void SetProfileId(ProfileIdT&& value) {
44 m_profileIdHasBeenSet = true;
45 m_profileId = std::forward<ProfileIdT>(value);
46 }
47 template <typename ProfileIdT = Aws::String>
48 AccessProfileSummary& WithProfileId(ProfileIdT&& value) {
49 SetProfileId(std::forward<ProfileIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetArn() const { return m_arn; }
59 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
60 template <typename ArnT = Aws::String>
61 void SetArn(ArnT&& value) {
62 m_arnHasBeenSet = true;
63 m_arn = std::forward<ArnT>(value);
64 }
65 template <typename ArnT = Aws::String>
67 SetArn(std::forward<ArnT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetName() const { return m_name; }
77 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
78 template <typename NameT = Aws::String>
79 void SetName(NameT&& value) {
80 m_nameHasBeenSet = true;
81 m_name = std::forward<NameT>(value);
82 }
83 template <typename NameT = Aws::String>
85 SetName(std::forward<NameT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetDescription() const { return m_description; }
95 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
96 template <typename DescriptionT = Aws::String>
97 void SetDescription(DescriptionT&& value) {
98 m_descriptionHasBeenSet = true;
99 m_description = std::forward<DescriptionT>(value);
100 }
101 template <typename DescriptionT = Aws::String>
102 AccessProfileSummary& WithDescription(DescriptionT&& value) {
103 SetDescription(std::forward<DescriptionT>(value));
104 return *this;
105 }
107
109
112 inline AccessProfileType GetProfileType() const { return m_profileType; }
113 inline bool ProfileTypeHasBeenSet() const { return m_profileTypeHasBeenSet; }
115 m_profileTypeHasBeenSet = true;
116 m_profileType = value;
117 }
119 SetProfileType(value);
120 return *this;
121 }
123 private:
124 Aws::String m_profileId;
125
126 Aws::String m_arn;
127
128 Aws::String m_name;
129
130 Aws::String m_description;
131
133 bool m_profileIdHasBeenSet = false;
134 bool m_arnHasBeenSet = false;
135 bool m_nameHasBeenSet = false;
136 bool m_descriptionHasBeenSet = false;
137 bool m_profileTypeHasBeenSet = false;
138};
139
140} // namespace Model
141} // namespace CloudWatchOmni
142} // namespace Aws
AccessProfileSummary & WithName(NameT &&value)
AWS_CLOUDWATCHOMNI_API AccessProfileSummary & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_CLOUDWATCHOMNI_API AccessProfileSummary()=default
AccessProfileSummary & WithDescription(DescriptionT &&value)
AWS_CLOUDWATCHOMNI_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AccessProfileSummary & WithArn(ArnT &&value)
AccessProfileSummary & WithProfileId(ProfileIdT &&value)
AWS_CLOUDWATCHOMNI_API AccessProfileSummary(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AccessProfileSummary & WithProfileType(AccessProfileType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String