AWS SDK for C++

AWS SDK for C++ Version 1.11.682

Loading...
Searching...
No Matches
CreateLensShareRequest.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 CreateLensShareRequest() = 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 "CreateLensShare"; }
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
50 inline const Aws::String& GetSharedWith() const { return m_sharedWith; }
51 inline bool SharedWithHasBeenSet() const { return m_sharedWithHasBeenSet; }
52 template <typename SharedWithT = Aws::String>
53 void SetSharedWith(SharedWithT&& value) {
54 m_sharedWithHasBeenSet = true;
55 m_sharedWith = std::forward<SharedWithT>(value);
56 }
57 template <typename SharedWithT = Aws::String>
58 CreateLensShareRequest& WithSharedWith(SharedWithT&& value) {
59 SetSharedWith(std::forward<SharedWithT>(value));
60 return *this;
61 }
63
65
66 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
67 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
68 template <typename ClientRequestTokenT = Aws::String>
69 void SetClientRequestToken(ClientRequestTokenT&& value) {
70 m_clientRequestTokenHasBeenSet = true;
71 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
72 }
73 template <typename ClientRequestTokenT = Aws::String>
74 CreateLensShareRequest& WithClientRequestToken(ClientRequestTokenT&& value) {
75 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
76 return *this;
77 }
79 private:
80 Aws::String m_lensAlias;
81 bool m_lensAliasHasBeenSet = false;
82
83 Aws::String m_sharedWith;
84 bool m_sharedWithHasBeenSet = false;
85
86 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
87 bool m_clientRequestTokenHasBeenSet = true;
88};
89
90} // namespace Model
91} // namespace WellArchitected
92} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
AWS_WELLARCHITECTED_API Aws::String SerializePayload() const override
CreateLensShareRequest & WithSharedWith(SharedWithT &&value)
virtual const char * GetServiceRequestName() const override
CreateLensShareRequest & WithLensAlias(LensAliasT &&value)
CreateLensShareRequest & WithClientRequestToken(ClientRequestTokenT &&value)
AWS_WELLARCHITECTED_API CreateLensShareRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String