AWS SDK for C++  0.14.3
AWS SDK for C++
SnapshotOptionsStatus.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 ElasticsearchService
30 {
31 namespace Model
32 {
33 
38  {
39  public:
42  SnapshotOptionsStatus& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
49  inline const SnapshotOptions& GetOptions() const{ return m_options; }
50 
55  inline void SetOptions(const SnapshotOptions& value) { m_optionsHasBeenSet = true; m_options = value; }
56 
61  inline void SetOptions(SnapshotOptions&& value) { m_optionsHasBeenSet = true; m_options = value; }
62 
67  inline SnapshotOptionsStatus& WithOptions(const SnapshotOptions& value) { SetOptions(value); return *this;}
68 
73  inline SnapshotOptionsStatus& WithOptions(SnapshotOptions&& value) { SetOptions(value); return *this;}
74 
78  inline const OptionStatus& GetStatus() const{ return m_status; }
79 
83  inline void SetStatus(const OptionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
84 
88  inline void SetStatus(OptionStatus&& value) { m_statusHasBeenSet = true; m_status = value; }
89 
93  inline SnapshotOptionsStatus& WithStatus(const OptionStatus& value) { SetStatus(value); return *this;}
94 
98  inline SnapshotOptionsStatus& WithStatus(OptionStatus&& value) { SetStatus(value); return *this;}
99 
100  private:
101  SnapshotOptions m_options;
102  bool m_optionsHasBeenSet;
103  OptionStatus m_status;
104  bool m_statusHasBeenSet;
105  };
106 
107 } // namespace Model
108 } // namespace ElasticsearchService
109 } // namespace Aws
SnapshotOptionsStatus & WithOptions(const SnapshotOptions &value)
SnapshotOptionsStatus & WithStatus(OptionStatus &&value)
SnapshotOptionsStatus & WithOptions(SnapshotOptions &&value)
#define AWS_ELASTICSEARCHSERVICE_API
SnapshotOptionsStatus & WithStatus(const OptionStatus &value)
JSON (JavaScript Object Notation).