AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCrlData(const Aws::Utils::ByteBuffer& value) { m_crlDataHasBeenSet = true; m_crlData = value; }
45 inline void SetCrlData(Aws::Utils::ByteBuffer&& value) { m_crlDataHasBeenSet = true; m_crlData = std::move(value); }
46 inline ImportCrlRequest& WithCrlData(const Aws::Utils::ByteBuffer& value) { SetCrlData(value); return *this;}
47 inline ImportCrlRequest& WithCrlData(Aws::Utils::ByteBuffer&& value) { SetCrlData(std::move(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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
67 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
68 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
69 inline ImportCrlRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
70 inline ImportCrlRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
71 inline ImportCrlRequest& WithName(const char* value) { SetName(value); return *this;}
73
75
78 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
79 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
80 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
81 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
82 inline ImportCrlRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
83 inline ImportCrlRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
84 inline ImportCrlRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
85 inline ImportCrlRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
87
89
93 inline const Aws::String& GetTrustAnchorArn() const{ return m_trustAnchorArn; }
94 inline bool TrustAnchorArnHasBeenSet() const { return m_trustAnchorArnHasBeenSet; }
95 inline void SetTrustAnchorArn(const Aws::String& value) { m_trustAnchorArnHasBeenSet = true; m_trustAnchorArn = value; }
96 inline void SetTrustAnchorArn(Aws::String&& value) { m_trustAnchorArnHasBeenSet = true; m_trustAnchorArn = std::move(value); }
97 inline void SetTrustAnchorArn(const char* value) { m_trustAnchorArnHasBeenSet = true; m_trustAnchorArn.assign(value); }
98 inline ImportCrlRequest& WithTrustAnchorArn(const Aws::String& value) { SetTrustAnchorArn(value); return *this;}
99 inline ImportCrlRequest& WithTrustAnchorArn(Aws::String&& value) { SetTrustAnchorArn(std::move(value)); return *this;}
100 inline ImportCrlRequest& WithTrustAnchorArn(const char* value) { SetTrustAnchorArn(value); return *this;}
102 private:
103
104 Aws::Utils::ByteBuffer m_crlData;
105 bool m_crlDataHasBeenSet = false;
106
107 bool m_enabled;
108 bool m_enabledHasBeenSet = false;
109
110 Aws::String m_name;
111 bool m_nameHasBeenSet = false;
112
113 Aws::Vector<Tag> m_tags;
114 bool m_tagsHasBeenSet = false;
115
116 Aws::String m_trustAnchorArn;
117 bool m_trustAnchorArnHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace RolesAnywhere
122} // namespace Aws
ImportCrlRequest & WithName(const char *value)
ImportCrlRequest & WithCrlData(Aws::Utils::ByteBuffer &&value)
ImportCrlRequest & WithName(Aws::String &&value)
void SetCrlData(const Aws::Utils::ByteBuffer &value)
ImportCrlRequest & WithEnabled(bool value)
ImportCrlRequest & WithCrlData(const Aws::Utils::ByteBuffer &value)
const Aws::Vector< Tag > & GetTags() const
const Aws::Utils::ByteBuffer & GetCrlData() const
ImportCrlRequest & WithTags(const Aws::Vector< Tag > &value)
ImportCrlRequest & WithTags(Aws::Vector< Tag > &&value)
const Aws::String & GetTrustAnchorArn() const
void SetCrlData(Aws::Utils::ByteBuffer &&value)
AWS_ROLESANYWHERE_API Aws::String SerializePayload() const override
ImportCrlRequest & WithTrustAnchorArn(const Aws::String &value)
void SetTrustAnchorArn(const Aws::String &value)
ImportCrlRequest & WithTrustAnchorArn(Aws::String &&value)
void SetTags(Aws::Vector< Tag > &&value)
ImportCrlRequest & AddTags(const Tag &value)
ImportCrlRequest & WithTrustAnchorArn(const char *value)
void SetTags(const Aws::Vector< Tag > &value)
ImportCrlRequest & WithName(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
ImportCrlRequest & AddTags(Tag &&value)
void SetName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector