AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
CreateProfileShareRequest.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 CreateProfileShareRequest() = 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 "CreateProfileShare"; }
29
30 AWS_WELLARCHITECTED_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetProfileArn() const { return m_profileArn; }
37 inline bool ProfileArnHasBeenSet() const { return m_profileArnHasBeenSet; }
38 template <typename ProfileArnT = Aws::String>
39 void SetProfileArn(ProfileArnT&& value) {
40 m_profileArnHasBeenSet = true;
41 m_profileArn = std::forward<ProfileArnT>(value);
42 }
43 template <typename ProfileArnT = Aws::String>
45 SetProfileArn(std::forward<ProfileArnT>(value));
46 return *this;
47 }
49
51
52 inline const Aws::String& GetSharedWith() const { return m_sharedWith; }
53 inline bool SharedWithHasBeenSet() const { return m_sharedWithHasBeenSet; }
54 template <typename SharedWithT = Aws::String>
55 void SetSharedWith(SharedWithT&& value) {
56 m_sharedWithHasBeenSet = true;
57 m_sharedWith = std::forward<SharedWithT>(value);
58 }
59 template <typename SharedWithT = Aws::String>
61 SetSharedWith(std::forward<SharedWithT>(value));
62 return *this;
63 }
65
67
68 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
69 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
70 template <typename ClientRequestTokenT = Aws::String>
71 void SetClientRequestToken(ClientRequestTokenT&& value) {
72 m_clientRequestTokenHasBeenSet = true;
73 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
74 }
75 template <typename ClientRequestTokenT = Aws::String>
76 CreateProfileShareRequest& WithClientRequestToken(ClientRequestTokenT&& value) {
77 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
78 return *this;
79 }
81 private:
82 Aws::String m_profileArn;
83
84 Aws::String m_sharedWith;
85
86 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
87 bool m_profileArnHasBeenSet = false;
88 bool m_sharedWithHasBeenSet = false;
89 bool m_clientRequestTokenHasBeenSet = true;
90};
91
92} // namespace Model
93} // namespace WellArchitected
94} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
CreateProfileShareRequest & WithSharedWith(SharedWithT &&value)
AWS_WELLARCHITECTED_API CreateProfileShareRequest()=default
CreateProfileShareRequest & WithClientRequestToken(ClientRequestTokenT &&value)
CreateProfileShareRequest & WithProfileArn(ProfileArnT &&value)
AWS_WELLARCHITECTED_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String