AWS SDK for C++

AWS SDK for C++ Version 1.11.682

Loading...
Searching...
No Matches
CreateLensVersionRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/wellarchitected/WellArchitectedRequest.h>
10#include <aws/wellarchitected/WellArchitected_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace WellArchitected {
16namespace Model {
17
21 public:
22 AWS_WELLARCHITECTED_API CreateLensVersionRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "CreateLensVersion"; }
29
30 AWS_WELLARCHITECTED_API Aws::String SerializePayload() const override;
31
33
34 inline const Aws::String& GetLensAlias() const { return m_lensAlias; }
35 inline bool LensAliasHasBeenSet() const { return m_lensAliasHasBeenSet; }
36 template <typename LensAliasT = Aws::String>
37 void SetLensAlias(LensAliasT&& value) {
38 m_lensAliasHasBeenSet = true;
39 m_lensAlias = std::forward<LensAliasT>(value);
40 }
41 template <typename LensAliasT = Aws::String>
43 SetLensAlias(std::forward<LensAliasT>(value));
44 return *this;
45 }
47
49
52 inline const Aws::String& GetLensVersion() const { return m_lensVersion; }
53 inline bool LensVersionHasBeenSet() const { return m_lensVersionHasBeenSet; }
54 template <typename LensVersionT = Aws::String>
55 void SetLensVersion(LensVersionT&& value) {
56 m_lensVersionHasBeenSet = true;
57 m_lensVersion = std::forward<LensVersionT>(value);
58 }
59 template <typename LensVersionT = Aws::String>
61 SetLensVersion(std::forward<LensVersionT>(value));
62 return *this;
63 }
65
67
70 inline bool GetIsMajorVersion() const { return m_isMajorVersion; }
71 inline bool IsMajorVersionHasBeenSet() const { return m_isMajorVersionHasBeenSet; }
72 inline void SetIsMajorVersion(bool value) {
73 m_isMajorVersionHasBeenSet = true;
74 m_isMajorVersion = value;
75 }
77 SetIsMajorVersion(value);
78 return *this;
79 }
81
83
84 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
85 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
86 template <typename ClientRequestTokenT = Aws::String>
87 void SetClientRequestToken(ClientRequestTokenT&& value) {
88 m_clientRequestTokenHasBeenSet = true;
89 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
90 }
91 template <typename ClientRequestTokenT = Aws::String>
92 CreateLensVersionRequest& WithClientRequestToken(ClientRequestTokenT&& value) {
93 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
94 return *this;
95 }
97 private:
98 Aws::String m_lensAlias;
99 bool m_lensAliasHasBeenSet = false;
100
101 Aws::String m_lensVersion;
102 bool m_lensVersionHasBeenSet = false;
103
104 bool m_isMajorVersion{false};
105 bool m_isMajorVersionHasBeenSet = false;
106
107 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
108 bool m_clientRequestTokenHasBeenSet = true;
109};
110
111} // namespace Model
112} // namespace WellArchitected
113} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
AWS_WELLARCHITECTED_API Aws::String SerializePayload() const override
CreateLensVersionRequest & WithIsMajorVersion(bool value)
CreateLensVersionRequest & WithLensVersion(LensVersionT &&value)
CreateLensVersionRequest & WithClientRequestToken(ClientRequestTokenT &&value)
AWS_WELLARCHITECTED_API CreateLensVersionRequest()=default
virtual const char * GetServiceRequestName() const override
CreateLensVersionRequest & WithLensAlias(LensAliasT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String