AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateResourceShareRequest.h
1
6#pragma once
7#include <aws/ram/RAM_EXPORTS.h>
8#include <aws/ram/RAMRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace RAM
15{
16namespace Model
17{
18
22 {
23 public:
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 "UpdateResourceShare"; }
31
32 AWS_RAM_API Aws::String SerializePayload() const override;
33
34
36
41 inline const Aws::String& GetResourceShareArn() const{ return m_resourceShareArn; }
42 inline bool ResourceShareArnHasBeenSet() const { return m_resourceShareArnHasBeenSet; }
43 inline void SetResourceShareArn(const Aws::String& value) { m_resourceShareArnHasBeenSet = true; m_resourceShareArn = value; }
44 inline void SetResourceShareArn(Aws::String&& value) { m_resourceShareArnHasBeenSet = true; m_resourceShareArn = std::move(value); }
45 inline void SetResourceShareArn(const char* value) { m_resourceShareArnHasBeenSet = true; m_resourceShareArn.assign(value); }
47 inline UpdateResourceShareRequest& WithResourceShareArn(Aws::String&& value) { SetResourceShareArn(std::move(value)); return *this;}
48 inline UpdateResourceShareRequest& WithResourceShareArn(const char* value) { SetResourceShareArn(value); return *this;}
50
52
55 inline const Aws::String& GetName() const{ return m_name; }
56 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
57 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
58 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
59 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
60 inline UpdateResourceShareRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
61 inline UpdateResourceShareRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
62 inline UpdateResourceShareRequest& WithName(const char* value) { SetName(value); return *this;}
64
66
70 inline bool GetAllowExternalPrincipals() const{ return m_allowExternalPrincipals; }
71 inline bool AllowExternalPrincipalsHasBeenSet() const { return m_allowExternalPrincipalsHasBeenSet; }
72 inline void SetAllowExternalPrincipals(bool value) { m_allowExternalPrincipalsHasBeenSet = true; m_allowExternalPrincipals = value; }
75
77
89 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
90 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
91 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
92 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
93 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
94 inline UpdateResourceShareRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
95 inline UpdateResourceShareRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
96 inline UpdateResourceShareRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
98 private:
99
100 Aws::String m_resourceShareArn;
101 bool m_resourceShareArnHasBeenSet = false;
102
103 Aws::String m_name;
104 bool m_nameHasBeenSet = false;
105
106 bool m_allowExternalPrincipals;
107 bool m_allowExternalPrincipalsHasBeenSet = false;
108
109 Aws::String m_clientToken;
110 bool m_clientTokenHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace RAM
115} // namespace Aws
virtual const char * GetServiceRequestName() const override
AWS_RAM_API Aws::String SerializePayload() const override
UpdateResourceShareRequest & WithName(Aws::String &&value)
UpdateResourceShareRequest & WithAllowExternalPrincipals(bool value)
UpdateResourceShareRequest & WithResourceShareArn(const Aws::String &value)
UpdateResourceShareRequest & WithClientToken(const char *value)
UpdateResourceShareRequest & WithClientToken(const Aws::String &value)
UpdateResourceShareRequest & WithClientToken(Aws::String &&value)
UpdateResourceShareRequest & WithResourceShareArn(Aws::String &&value)
UpdateResourceShareRequest & WithResourceShareArn(const char *value)
UpdateResourceShareRequest & WithName(const Aws::String &value)
UpdateResourceShareRequest & WithName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String