AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PutAccessPointScopeRequest.h
1
6#pragma once
7#include <aws/s3control/S3Control_EXPORTS.h>
8#include <aws/s3control/S3ControlRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/s3control/model/Scope.h>
11#include <utility>
12
13namespace Aws
14{
15namespace S3Control
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_S3CONTROL_API PutAccessPointScopeRequest() = default;
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 "PutAccessPointScope"; }
32
33 AWS_S3CONTROL_API Aws::String SerializePayload() const override;
34
36
40 AWS_S3CONTROL_API EndpointParameters GetEndpointContextParams() const override;
41
43
47 inline const Aws::String& GetAccountId() const { return m_accountId; }
48 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
49 template<typename AccountIdT = Aws::String>
50 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
51 template<typename AccountIdT = Aws::String>
52 PutAccessPointScopeRequest& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
54
56
60 inline const Aws::String& GetName() const { return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 template<typename NameT = Aws::String>
63 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
64 template<typename NameT = Aws::String>
65 PutAccessPointScopeRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
67
69
72 inline const Scope& GetScope() const { return m_scope; }
73 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
74 template<typename ScopeT = Scope>
75 void SetScope(ScopeT&& value) { m_scopeHasBeenSet = true; m_scope = std::forward<ScopeT>(value); }
76 template<typename ScopeT = Scope>
77 PutAccessPointScopeRequest& WithScope(ScopeT&& value) { SetScope(std::forward<ScopeT>(value)); return *this;}
79 private:
80
81 Aws::String m_accountId;
82 bool m_accountIdHasBeenSet = false;
83
84 Aws::String m_name;
85 bool m_nameHasBeenSet = false;
86
87 Scope m_scope;
88 bool m_scopeHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace S3Control
93} // 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