AWS SDK for C++  0.14.3
AWS SDK for C++
DataRetrievalPolicy.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
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace Glacier
30 {
31 namespace Model
32 {
33 
38  {
39  public:
42  DataRetrievalPolicy& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
50  inline const Aws::Vector<DataRetrievalRule>& GetRules() const{ return m_rules; }
51 
57  inline void SetRules(const Aws::Vector<DataRetrievalRule>& value) { m_rulesHasBeenSet = true; m_rules = value; }
58 
64  inline void SetRules(Aws::Vector<DataRetrievalRule>&& value) { m_rulesHasBeenSet = true; m_rules = value; }
65 
71  inline DataRetrievalPolicy& WithRules(const Aws::Vector<DataRetrievalRule>& value) { SetRules(value); return *this;}
72 
78  inline DataRetrievalPolicy& WithRules(Aws::Vector<DataRetrievalRule>&& value) { SetRules(value); return *this;}
79 
85  inline DataRetrievalPolicy& AddRules(const DataRetrievalRule& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; }
86 
92  inline DataRetrievalPolicy& AddRules(DataRetrievalRule&& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; }
93 
94  private:
96  bool m_rulesHasBeenSet;
97  };
98 
99 } // namespace Model
100 } // namespace Glacier
101 } // namespace Aws
DataRetrievalPolicy & AddRules(DataRetrievalRule &&value)
DataRetrievalPolicy & AddRules(const DataRetrievalRule &value)
const Aws::Vector< DataRetrievalRule > & GetRules() const
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
void SetRules(const Aws::Vector< DataRetrievalRule > &value)
void SetRules(Aws::Vector< DataRetrievalRule > &&value)
#define AWS_GLACIER_API
DataRetrievalPolicy & WithRules(const Aws::Vector< DataRetrievalRule > &value)
DataRetrievalPolicy & WithRules(Aws::Vector< DataRetrievalRule > &&value)
JSON (JavaScript Object Notation).