AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SetDataRetrievalPolicyRequest.h
1
6#pragma once
7#include <aws/glacier/Glacier_EXPORTS.h>
8#include <aws/glacier/GlacierRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/glacier/model/DataRetrievalPolicy.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Glacier
16{
17namespace Model
18{
19
26 {
27 public:
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "SetDataRetrievalPolicy"; }
35
36 AWS_GLACIER_API Aws::String SerializePayload() const override;
37
38
40
48 inline const Aws::String& GetAccountId() const{ return m_accountId; }
49 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
50 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
51 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
52 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
53 inline SetDataRetrievalPolicyRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
54 inline SetDataRetrievalPolicyRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
55 inline SetDataRetrievalPolicyRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
57
59
62 inline const DataRetrievalPolicy& GetPolicy() const{ return m_policy; }
63 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
64 inline void SetPolicy(const DataRetrievalPolicy& value) { m_policyHasBeenSet = true; m_policy = value; }
65 inline void SetPolicy(DataRetrievalPolicy&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); }
66 inline SetDataRetrievalPolicyRequest& WithPolicy(const DataRetrievalPolicy& value) { SetPolicy(value); return *this;}
67 inline SetDataRetrievalPolicyRequest& WithPolicy(DataRetrievalPolicy&& value) { SetPolicy(std::move(value)); return *this;}
69 private:
70
71 Aws::String m_accountId;
72 bool m_accountIdHasBeenSet = false;
73
74 DataRetrievalPolicy m_policy;
75 bool m_policyHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace Glacier
80} // namespace Aws
SetDataRetrievalPolicyRequest & WithAccountId(Aws::String &&value)
SetDataRetrievalPolicyRequest & WithPolicy(const DataRetrievalPolicy &value)
SetDataRetrievalPolicyRequest & WithPolicy(DataRetrievalPolicy &&value)
AWS_GLACIER_API Aws::String SerializePayload() const override
SetDataRetrievalPolicyRequest & WithAccountId(const char *value)
SetDataRetrievalPolicyRequest & WithAccountId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String