AWS SDK for C++  0.14.3
AWS SDK for C++
SetDataRetrievalPolicyRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
20 
21 namespace Aws
22 {
23 namespace Glacier
24 {
25 namespace Model
26 {
27 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
45  inline const Aws::String& GetAccountId() const{ return m_accountId; }
46 
55  inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
56 
65  inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
66 
75  inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
76 
85  inline SetDataRetrievalPolicyRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
86 
95  inline SetDataRetrievalPolicyRequest& WithAccountId(Aws::String&& value) { SetAccountId(value); return *this;}
96 
105  inline SetDataRetrievalPolicyRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
106 
110  inline const DataRetrievalPolicy& GetPolicy() const{ return m_policy; }
111 
115  inline void SetPolicy(const DataRetrievalPolicy& value) { m_policyHasBeenSet = true; m_policy = value; }
116 
120  inline void SetPolicy(DataRetrievalPolicy&& value) { m_policyHasBeenSet = true; m_policy = value; }
121 
125  inline SetDataRetrievalPolicyRequest& WithPolicy(const DataRetrievalPolicy& value) { SetPolicy(value); return *this;}
126 
130  inline SetDataRetrievalPolicyRequest& WithPolicy(DataRetrievalPolicy&& value) { SetPolicy(value); return *this;}
131 
132  private:
133  Aws::String m_accountId;
134  bool m_accountIdHasBeenSet;
135  DataRetrievalPolicy m_policy;
136  bool m_policyHasBeenSet;
137  };
138 
139 } // namespace Model
140 } // namespace Glacier
141 } // namespace Aws
SetDataRetrievalPolicyRequest & WithAccountId(Aws::String &&value)
SetDataRetrievalPolicyRequest & WithPolicy(const DataRetrievalPolicy &value)
SetDataRetrievalPolicyRequest & WithPolicy(DataRetrievalPolicy &&value)
#define AWS_GLACIER_API
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
SetDataRetrievalPolicyRequest & WithAccountId(const char *value)
JSON (JavaScript Object Notation).
SetDataRetrievalPolicyRequest & WithAccountId(const Aws::String &value)