AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
PutAccessPointScopeRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/s3control/S3ControlRequest.h>
9#include <aws/s3control/S3Control_EXPORTS.h>
10#include <aws/s3control/model/Scope.h>
11
12#include <utility>
13
14namespace Aws {
15namespace S3Control {
16namespace Model {
17
21 public:
22 AWS_S3CONTROL_API PutAccessPointScopeRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "PutAccessPointScope"; }
29
30 AWS_S3CONTROL_API Aws::String SerializePayload() const override;
31
33
37 AWS_S3CONTROL_API EndpointParameters GetEndpointContextParams() const override;
38
40
44 inline const Aws::String& GetAccountId() const { return m_accountId; }
45 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
46 template <typename AccountIdT = Aws::String>
47 void SetAccountId(AccountIdT&& value) {
48 m_accountIdHasBeenSet = true;
49 m_accountId = std::forward<AccountIdT>(value);
50 }
51 template <typename AccountIdT = Aws::String>
53 SetAccountId(std::forward<AccountIdT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::String& GetName() const { return m_name; }
64 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
65 template <typename NameT = Aws::String>
66 void SetName(NameT&& value) {
67 m_nameHasBeenSet = true;
68 m_name = std::forward<NameT>(value);
69 }
70 template <typename NameT = Aws::String>
72 SetName(std::forward<NameT>(value));
73 return *this;
74 }
76
78
81 inline const Scope& GetScope() const { return m_scope; }
82 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
83 template <typename ScopeT = Scope>
84 void SetScope(ScopeT&& value) {
85 m_scopeHasBeenSet = true;
86 m_scope = std::forward<ScopeT>(value);
87 }
88 template <typename ScopeT = Scope>
90 SetScope(std::forward<ScopeT>(value));
91 return *this;
92 }
94 private:
95 Aws::String m_accountId;
96
97 Aws::String m_name;
98
99 Scope m_scope;
100 bool m_accountIdHasBeenSet = false;
101 bool m_nameHasBeenSet = false;
102 bool m_scopeHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace S3Control
107} // namespace Aws
AWS_S3CONTROL_API PutAccessPointScopeRequest()=default
virtual const char * GetServiceRequestName() const override
AWS_S3CONTROL_API EndpointParameters GetEndpointContextParams() const override
AWS_S3CONTROL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_S3CONTROL_API Aws::String SerializePayload() const override
PutAccessPointScopeRequest & WithName(NameT &&value)
PutAccessPointScopeRequest & WithScope(ScopeT &&value)
PutAccessPointScopeRequest & WithAccountId(AccountIdT &&value)
Aws::Endpoint::EndpointParameters EndpointParameters
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String