AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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