AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
SetDataRetrievalPolicyRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/glacier/GlacierRequest.h>
9#include <aws/glacier/Glacier_EXPORTS.h>
10#include <aws/glacier/model/DataRetrievalPolicy.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Glacier {
16namespace Model {
17
24 public:
25 AWS_GLACIER_API SetDataRetrievalPolicyRequest() = 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 "SetDataRetrievalPolicy"; }
32
33 AWS_GLACIER_API Aws::String SerializePayload() const override;
34
36
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
62 inline const DataRetrievalPolicy& GetPolicy() const { return m_policy; }
63 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
64 template <typename PolicyT = DataRetrievalPolicy>
65 void SetPolicy(PolicyT&& value) {
66 m_policyHasBeenSet = true;
67 m_policy = std::forward<PolicyT>(value);
68 }
69 template <typename PolicyT = DataRetrievalPolicy>
71 SetPolicy(std::forward<PolicyT>(value));
72 return *this;
73 }
75 private:
76 Aws::String m_accountId;
77
78 DataRetrievalPolicy m_policy;
79 bool m_accountIdHasBeenSet = false;
80 bool m_policyHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace Glacier
85} // namespace Aws
SetDataRetrievalPolicyRequest & WithPolicy(PolicyT &&value)
SetDataRetrievalPolicyRequest & WithAccountId(AccountIdT &&value)
AWS_GLACIER_API SetDataRetrievalPolicyRequest()=default
AWS_GLACIER_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String