AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ImportCrlRequest.h
1
6#pragma once
7#include <aws/core/utils/Array.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/rolesanywhere/RolesAnywhereRequest.h>
11#include <aws/rolesanywhere/RolesAnywhere_EXPORTS.h>
12#include <aws/rolesanywhere/model/Tag.h>
13
14#include <utility>
15
16namespace Aws {
17namespace RolesAnywhere {
18namespace Model {
19
23 public:
24 AWS_ROLESANYWHERE_API ImportCrlRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "ImportCrl"; }
31
32 AWS_ROLESANYWHERE_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetName() const { return m_name; }
39 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
40 template <typename NameT = Aws::String>
41 void SetName(NameT&& value) {
42 m_nameHasBeenSet = true;
43 m_name = std::forward<NameT>(value);
44 }
45 template <typename NameT = Aws::String>
46 ImportCrlRequest& WithName(NameT&& value) {
47 SetName(std::forward<NameT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::Utils::ByteBuffer& GetCrlData() const { return m_crlData; }
57 inline bool CrlDataHasBeenSet() const { return m_crlDataHasBeenSet; }
58 template <typename CrlDataT = Aws::Utils::ByteBuffer>
59 void SetCrlData(CrlDataT&& value) {
60 m_crlDataHasBeenSet = true;
61 m_crlData = std::forward<CrlDataT>(value);
62 }
63 template <typename CrlDataT = Aws::Utils::ByteBuffer>
64 ImportCrlRequest& WithCrlData(CrlDataT&& value) {
65 SetCrlData(std::forward<CrlDataT>(value));
66 return *this;
67 }
69
71
74 inline bool GetEnabled() const { return m_enabled; }
75 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
76 inline void SetEnabled(bool value) {
77 m_enabledHasBeenSet = true;
78 m_enabled = value;
79 }
80 inline ImportCrlRequest& WithEnabled(bool value) {
81 SetEnabled(value);
82 return *this;
83 }
85
87
90 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
91 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
92 template <typename TagsT = Aws::Vector<Tag>>
93 void SetTags(TagsT&& value) {
94 m_tagsHasBeenSet = true;
95 m_tags = std::forward<TagsT>(value);
96 }
97 template <typename TagsT = Aws::Vector<Tag>>
98 ImportCrlRequest& WithTags(TagsT&& value) {
99 SetTags(std::forward<TagsT>(value));
100 return *this;
101 }
102 template <typename TagsT = Tag>
103 ImportCrlRequest& AddTags(TagsT&& value) {
104 m_tagsHasBeenSet = true;
105 m_tags.emplace_back(std::forward<TagsT>(value));
106 return *this;
107 }
109
111
115 inline const Aws::String& GetTrustAnchorArn() const { return m_trustAnchorArn; }
116 inline bool TrustAnchorArnHasBeenSet() const { return m_trustAnchorArnHasBeenSet; }
117 template <typename TrustAnchorArnT = Aws::String>
118 void SetTrustAnchorArn(TrustAnchorArnT&& value) {
119 m_trustAnchorArnHasBeenSet = true;
120 m_trustAnchorArn = std::forward<TrustAnchorArnT>(value);
121 }
122 template <typename TrustAnchorArnT = Aws::String>
123 ImportCrlRequest& WithTrustAnchorArn(TrustAnchorArnT&& value) {
124 SetTrustAnchorArn(std::forward<TrustAnchorArnT>(value));
125 return *this;
126 }
128 private:
129 Aws::String m_name;
130
131 Aws::Utils::ByteBuffer m_crlData{};
132
133 bool m_enabled{false};
134
135 Aws::Vector<Tag> m_tags;
136
137 Aws::String m_trustAnchorArn;
138 bool m_nameHasBeenSet = false;
139 bool m_crlDataHasBeenSet = false;
140 bool m_enabledHasBeenSet = false;
141 bool m_tagsHasBeenSet = false;
142 bool m_trustAnchorArnHasBeenSet = false;
143};
144
145} // namespace Model
146} // namespace RolesAnywhere
147} // namespace Aws
ImportCrlRequest & WithName(NameT &&value)
ImportCrlRequest & WithTags(TagsT &&value)
ImportCrlRequest & WithEnabled(bool value)
void SetTrustAnchorArn(TrustAnchorArnT &&value)
ImportCrlRequest & WithCrlData(CrlDataT &&value)
ImportCrlRequest & WithTrustAnchorArn(TrustAnchorArnT &&value)
const Aws::Vector< Tag > & GetTags() const
const Aws::Utils::ByteBuffer & GetCrlData() const
ImportCrlRequest & AddTags(TagsT &&value)
const Aws::String & GetTrustAnchorArn() const
AWS_ROLESANYWHERE_API Aws::String SerializePayload() const override
AWS_ROLESANYWHERE_API ImportCrlRequest()=default
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector