AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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