AWS SDK for C++  1.9.108
AWS SDK for C++
SetResourceAccessForBucketRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Lightsail
16 {
17 namespace Model
18 {
19 
23  {
24  public:
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 "SetResourceAccessForBucket"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
42  inline const Aws::String& GetResourceName() const{ return m_resourceName; }
43 
48  inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
49 
54  inline void SetResourceName(const Aws::String& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; }
55 
60  inline void SetResourceName(Aws::String&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::move(value); }
61 
66  inline void SetResourceName(const char* value) { m_resourceNameHasBeenSet = true; m_resourceName.assign(value); }
67 
72  inline SetResourceAccessForBucketRequest& WithResourceName(const Aws::String& value) { SetResourceName(value); return *this;}
73 
78  inline SetResourceAccessForBucketRequest& WithResourceName(Aws::String&& value) { SetResourceName(std::move(value)); return *this;}
79 
84  inline SetResourceAccessForBucketRequest& WithResourceName(const char* value) { SetResourceName(value); return *this;}
85 
86 
91  inline const Aws::String& GetBucketName() const{ return m_bucketName; }
92 
97  inline bool BucketNameHasBeenSet() const { return m_bucketNameHasBeenSet; }
98 
103  inline void SetBucketName(const Aws::String& value) { m_bucketNameHasBeenSet = true; m_bucketName = value; }
104 
109  inline void SetBucketName(Aws::String&& value) { m_bucketNameHasBeenSet = true; m_bucketName = std::move(value); }
110 
115  inline void SetBucketName(const char* value) { m_bucketNameHasBeenSet = true; m_bucketName.assign(value); }
116 
121  inline SetResourceAccessForBucketRequest& WithBucketName(const Aws::String& value) { SetBucketName(value); return *this;}
122 
127  inline SetResourceAccessForBucketRequest& WithBucketName(Aws::String&& value) { SetBucketName(std::move(value)); return *this;}
128 
133  inline SetResourceAccessForBucketRequest& WithBucketName(const char* value) { SetBucketName(value); return *this;}
134 
135 
143  inline const ResourceBucketAccess& GetAccess() const{ return m_access; }
144 
152  inline bool AccessHasBeenSet() const { return m_accessHasBeenSet; }
153 
161  inline void SetAccess(const ResourceBucketAccess& value) { m_accessHasBeenSet = true; m_access = value; }
162 
170  inline void SetAccess(ResourceBucketAccess&& value) { m_accessHasBeenSet = true; m_access = std::move(value); }
171 
179  inline SetResourceAccessForBucketRequest& WithAccess(const ResourceBucketAccess& value) { SetAccess(value); return *this;}
180 
188  inline SetResourceAccessForBucketRequest& WithAccess(ResourceBucketAccess&& value) { SetAccess(std::move(value)); return *this;}
189 
190  private:
191 
192  Aws::String m_resourceName;
193  bool m_resourceNameHasBeenSet;
194 
195  Aws::String m_bucketName;
196  bool m_bucketNameHasBeenSet;
197 
198  ResourceBucketAccess m_access;
199  bool m_accessHasBeenSet;
200  };
201 
202 } // namespace Model
203 } // namespace Lightsail
204 } // namespace Aws
Aws::Lightsail::Model::SetResourceAccessForBucketRequest::SetResourceName
void SetResourceName(const Aws::String &value)
Definition: SetResourceAccessForBucketRequest.h:54
Aws::Lightsail::Model::SetResourceAccessForBucketRequest::GetAccess
const ResourceBucketAccess & GetAccess() const
Definition: SetResourceAccessForBucketRequest.h:143
Aws::Lightsail::Model::SetResourceAccessForBucketRequest::AccessHasBeenSet
bool AccessHasBeenSet() const
Definition: SetResourceAccessForBucketRequest.h:152
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Lightsail::Model::SetResourceAccessForBucketRequest::SetResourceName
void SetResourceName(Aws::String &&value)
Definition: SetResourceAccessForBucketRequest.h:60
Aws::Lightsail::Model::SetResourceAccessForBucketRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Lightsail::Model::SetResourceAccessForBucketRequest::GetBucketName
const Aws::String & GetBucketName() const
Definition: SetResourceAccessForBucketRequest.h:91
Aws::Lightsail::Model::SetResourceAccessForBucketRequest::GetResourceName
const Aws::String & GetResourceName() const
Definition: SetResourceAccessForBucketRequest.h:42
Aws::Lightsail::Model::SetResourceAccessForBucketRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Lightsail::Model::SetResourceAccessForBucketRequest::ResourceNameHasBeenSet
bool ResourceNameHasBeenSet() const
Definition: SetResourceAccessForBucketRequest.h:48
Aws::Lightsail::Model::SetResourceAccessForBucketRequest::SetBucketName
void SetBucketName(const Aws::String &value)
Definition: SetResourceAccessForBucketRequest.h:103
Aws::Lightsail::Model::SetResourceAccessForBucketRequest::SetAccess
void SetAccess(ResourceBucketAccess &&value)
Definition: SetResourceAccessForBucketRequest.h:170
LightsailRequest.h
Aws::Lightsail::Model::SetResourceAccessForBucketRequest::WithAccess
SetResourceAccessForBucketRequest & WithAccess(const ResourceBucketAccess &value)
Definition: SetResourceAccessForBucketRequest.h:179
Aws::Lightsail::Model::SetResourceAccessForBucketRequest::WithResourceName
SetResourceAccessForBucketRequest & WithResourceName(Aws::String &&value)
Definition: SetResourceAccessForBucketRequest.h:78
Aws::Lightsail::Model::SetResourceAccessForBucketRequest::SetBucketName
void SetBucketName(const char *value)
Definition: SetResourceAccessForBucketRequest.h:115
ResourceBucketAccess.h
Aws::Lightsail::Model::SetResourceAccessForBucketRequest::SetAccess
void SetAccess(const ResourceBucketAccess &value)
Definition: SetResourceAccessForBucketRequest.h:161
Aws::Lightsail::LightsailRequest
Definition: LightsailRequest.h:17
Aws::Lightsail::Model::SetResourceAccessForBucketRequest::SetResourceName
void SetResourceName(const char *value)
Definition: SetResourceAccessForBucketRequest.h:66
AWSString.h
Aws::Lightsail::Model::SetResourceAccessForBucketRequest
Definition: SetResourceAccessForBucketRequest.h:23
Aws::Lightsail::Model::SetResourceAccessForBucketRequest::WithResourceName
SetResourceAccessForBucketRequest & WithResourceName(const Aws::String &value)
Definition: SetResourceAccessForBucketRequest.h:72
Lightsail_EXPORTS.h
Aws::Lightsail::Model::SetResourceAccessForBucketRequest::WithBucketName
SetResourceAccessForBucketRequest & WithBucketName(const char *value)
Definition: SetResourceAccessForBucketRequest.h:133
Aws::Lightsail::Model::SetResourceAccessForBucketRequest::WithBucketName
SetResourceAccessForBucketRequest & WithBucketName(const Aws::String &value)
Definition: SetResourceAccessForBucketRequest.h:121
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::SetResourceAccessForBucketRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: SetResourceAccessForBucketRequest.h:31
Aws::Lightsail::Model::SetResourceAccessForBucketRequest::BucketNameHasBeenSet
bool BucketNameHasBeenSet() const
Definition: SetResourceAccessForBucketRequest.h:97
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::ResourceBucketAccess
ResourceBucketAccess
Definition: ResourceBucketAccess.h:17
Aws::Lightsail::Model::SetResourceAccessForBucketRequest::SetResourceAccessForBucketRequest
SetResourceAccessForBucketRequest()
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::SetResourceAccessForBucketRequest::WithBucketName
SetResourceAccessForBucketRequest & WithBucketName(Aws::String &&value)
Definition: SetResourceAccessForBucketRequest.h:127
Aws::Lightsail::Model::SetResourceAccessForBucketRequest::WithResourceName
SetResourceAccessForBucketRequest & WithResourceName(const char *value)
Definition: SetResourceAccessForBucketRequest.h:84
Aws::Lightsail::Model::SetResourceAccessForBucketRequest::WithAccess
SetResourceAccessForBucketRequest & WithAccess(ResourceBucketAccess &&value)
Definition: SetResourceAccessForBucketRequest.h:188
Aws::Lightsail::Model::SetResourceAccessForBucketRequest::SetBucketName
void SetBucketName(Aws::String &&value)
Definition: SetResourceAccessForBucketRequest.h:109