AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateProfileShareRequest.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 CreateProfileShareRequest() = 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 "CreateProfileShare"; }
32
33 AWS_WELLARCHITECTED_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetProfileArn() const { return m_profileArn; }
41 inline bool ProfileArnHasBeenSet() const { return m_profileArnHasBeenSet; }
42 template<typename ProfileArnT = Aws::String>
43 void SetProfileArn(ProfileArnT&& value) { m_profileArnHasBeenSet = true; m_profileArn = std::forward<ProfileArnT>(value); }
44 template<typename ProfileArnT = Aws::String>
45 CreateProfileShareRequest& WithProfileArn(ProfileArnT&& value) { SetProfileArn(std::forward<ProfileArnT>(value)); return *this;}
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) { m_sharedWithHasBeenSet = true; m_sharedWith = std::forward<SharedWithT>(value); }
54 template<typename SharedWithT = Aws::String>
55 CreateProfileShareRequest& WithSharedWith(SharedWithT&& value) { SetSharedWith(std::forward<SharedWithT>(value)); return *this;}
57
59
60 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
61 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
62 template<typename ClientRequestTokenT = Aws::String>
63 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
64 template<typename ClientRequestTokenT = Aws::String>
65 CreateProfileShareRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
67 private:
68
69 Aws::String m_profileArn;
70 bool m_profileArnHasBeenSet = false;
71
72 Aws::String m_sharedWith;
73 bool m_sharedWithHasBeenSet = false;
74
75 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
76 bool m_clientRequestTokenHasBeenSet = true;
77 };
78
79} // namespace Model
80} // namespace WellArchitected
81} // 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