AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateShareRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/omics/OmicsRequest.h>
9#include <aws/omics/Omics_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Omics {
15namespace Model {
16
20 public:
21 AWS_OMICS_API CreateShareRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "CreateShare"; }
28
29 AWS_OMICS_API Aws::String SerializePayload() const override;
30
32
35 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
36 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
37 template <typename ResourceArnT = Aws::String>
38 void SetResourceArn(ResourceArnT&& value) {
39 m_resourceArnHasBeenSet = true;
40 m_resourceArn = std::forward<ResourceArnT>(value);
41 }
42 template <typename ResourceArnT = Aws::String>
43 CreateShareRequest& WithResourceArn(ResourceArnT&& value) {
44 SetResourceArn(std::forward<ResourceArnT>(value));
45 return *this;
46 }
48
50
54 inline const Aws::String& GetPrincipalSubscriber() const { return m_principalSubscriber; }
55 inline bool PrincipalSubscriberHasBeenSet() const { return m_principalSubscriberHasBeenSet; }
56 template <typename PrincipalSubscriberT = Aws::String>
57 void SetPrincipalSubscriber(PrincipalSubscriberT&& value) {
58 m_principalSubscriberHasBeenSet = true;
59 m_principalSubscriber = std::forward<PrincipalSubscriberT>(value);
60 }
61 template <typename PrincipalSubscriberT = Aws::String>
62 CreateShareRequest& WithPrincipalSubscriber(PrincipalSubscriberT&& value) {
63 SetPrincipalSubscriber(std::forward<PrincipalSubscriberT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetShareName() const { return m_shareName; }
73 inline bool ShareNameHasBeenSet() const { return m_shareNameHasBeenSet; }
74 template <typename ShareNameT = Aws::String>
75 void SetShareName(ShareNameT&& value) {
76 m_shareNameHasBeenSet = true;
77 m_shareName = std::forward<ShareNameT>(value);
78 }
79 template <typename ShareNameT = Aws::String>
80 CreateShareRequest& WithShareName(ShareNameT&& value) {
81 SetShareName(std::forward<ShareNameT>(value));
82 return *this;
83 }
85 private:
86 Aws::String m_resourceArn;
87
88 Aws::String m_principalSubscriber;
89
90 Aws::String m_shareName;
91 bool m_resourceArnHasBeenSet = false;
92 bool m_principalSubscriberHasBeenSet = false;
93 bool m_shareNameHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace Omics
98} // namespace Aws
void SetResourceArn(ResourceArnT &&value)
AWS_OMICS_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
CreateShareRequest & WithPrincipalSubscriber(PrincipalSubscriberT &&value)
CreateShareRequest & WithResourceArn(ResourceArnT &&value)
CreateShareRequest & WithShareName(ShareNameT &&value)
AWS_OMICS_API CreateShareRequest()=default
const Aws::String & GetPrincipalSubscriber() const
void SetPrincipalSubscriber(PrincipalSubscriberT &&value)
const Aws::String & GetShareName() const
const Aws::String & GetResourceArn() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String