AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ImportCrlRequest.h
1
6#pragma once
7#include <aws/rolesanywhere/RolesAnywhere_EXPORTS.h>
8#include <aws/rolesanywhere/RolesAnywhereRequest.h>
9#include <aws/core/utils/Array.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/rolesanywhere/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace RolesAnywhere
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_ROLESANYWHERE_API ImportCrlRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "ImportCrl"; }
34
35 AWS_ROLESANYWHERE_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::Utils::ByteBuffer& GetCrlData() const { return m_crlData; }
43 inline bool CrlDataHasBeenSet() const { return m_crlDataHasBeenSet; }
44 template<typename CrlDataT = Aws::Utils::ByteBuffer>
45 void SetCrlData(CrlDataT&& value) { m_crlDataHasBeenSet = true; m_crlData = std::forward<CrlDataT>(value); }
46 template<typename CrlDataT = Aws::Utils::ByteBuffer>
47 ImportCrlRequest& WithCrlData(CrlDataT&& value) { SetCrlData(std::forward<CrlDataT>(value)); return *this;}
49
51
54 inline bool GetEnabled() const { return m_enabled; }
55 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
56 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
57 inline ImportCrlRequest& WithEnabled(bool value) { SetEnabled(value); return *this;}
59
61
64 inline const Aws::String& GetName() const { return m_name; }
65 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
66 template<typename NameT = Aws::String>
67 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
68 template<typename NameT = Aws::String>
69 ImportCrlRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
71
73
76 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
77 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
78 template<typename TagsT = Aws::Vector<Tag>>
79 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
80 template<typename TagsT = Aws::Vector<Tag>>
81 ImportCrlRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
82 template<typename TagsT = Tag>
83 ImportCrlRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
85
87
91 inline const Aws::String& GetTrustAnchorArn() const { return m_trustAnchorArn; }
92 inline bool TrustAnchorArnHasBeenSet() const { return m_trustAnchorArnHasBeenSet; }
93 template<typename TrustAnchorArnT = Aws::String>
94 void SetTrustAnchorArn(TrustAnchorArnT&& value) { m_trustAnchorArnHasBeenSet = true; m_trustAnchorArn = std::forward<TrustAnchorArnT>(value); }
95 template<typename TrustAnchorArnT = Aws::String>
96 ImportCrlRequest& WithTrustAnchorArn(TrustAnchorArnT&& value) { SetTrustAnchorArn(std::forward<TrustAnchorArnT>(value)); return *this;}
98 private:
99
100 Aws::Utils::ByteBuffer m_crlData{};
101 bool m_crlDataHasBeenSet = false;
102
103 bool m_enabled{false};
104 bool m_enabledHasBeenSet = false;
105
106 Aws::String m_name;
107 bool m_nameHasBeenSet = false;
108
109 Aws::Vector<Tag> m_tags;
110 bool m_tagsHasBeenSet = false;
111
112 Aws::String m_trustAnchorArn;
113 bool m_trustAnchorArnHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace RolesAnywhere
118} // 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