AWS SDK for C++  0.14.3
AWS SDK for C++
OptionStatus.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 Utils
24 {
25 namespace Xml
26 {
27  class XmlNode;
28 } // namespace Xml
29 } // namespace Utils
30 namespace CloudSearch
31 {
32 namespace Model
33 {
34 
39  {
40  public:
41  OptionStatus();
42  OptionStatus(const Aws::Utils::Xml::XmlNode& xmlNode);
43  OptionStatus& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
44 
45  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46  void OutputToStream(Aws::OStream& oStream, const char* location) const;
47 
51  inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; }
52 
56  inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
57 
61  inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
62 
66  inline OptionStatus& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;}
67 
71  inline OptionStatus& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(value); return *this;}
72 
76  inline const Aws::Utils::DateTime& GetUpdateDate() const{ return m_updateDate; }
77 
81  inline void SetUpdateDate(const Aws::Utils::DateTime& value) { m_updateDateHasBeenSet = true; m_updateDate = value; }
82 
86  inline void SetUpdateDate(Aws::Utils::DateTime&& value) { m_updateDateHasBeenSet = true; m_updateDate = value; }
87 
91  inline OptionStatus& WithUpdateDate(const Aws::Utils::DateTime& value) { SetUpdateDate(value); return *this;}
92 
96  inline OptionStatus& WithUpdateDate(Aws::Utils::DateTime&& value) { SetUpdateDate(value); return *this;}
97 
101  inline int GetUpdateVersion() const{ return m_updateVersion; }
102 
106  inline void SetUpdateVersion(int value) { m_updateVersionHasBeenSet = true; m_updateVersion = value; }
107 
111  inline OptionStatus& WithUpdateVersion(int value) { SetUpdateVersion(value); return *this;}
112 
124  inline const OptionState& GetState() const{ return m_state; }
125 
137  inline void SetState(const OptionState& value) { m_stateHasBeenSet = true; m_state = value; }
138 
150  inline void SetState(OptionState&& value) { m_stateHasBeenSet = true; m_state = value; }
151 
163  inline OptionStatus& WithState(const OptionState& value) { SetState(value); return *this;}
164 
176  inline OptionStatus& WithState(OptionState&& value) { SetState(value); return *this;}
177 
181  inline bool GetPendingDeletion() const{ return m_pendingDeletion; }
182 
186  inline void SetPendingDeletion(bool value) { m_pendingDeletionHasBeenSet = true; m_pendingDeletion = value; }
187 
191  inline OptionStatus& WithPendingDeletion(bool value) { SetPendingDeletion(value); return *this;}
192 
193  private:
194  Aws::Utils::DateTime m_creationDate;
195  bool m_creationDateHasBeenSet;
196  Aws::Utils::DateTime m_updateDate;
197  bool m_updateDateHasBeenSet;
198  int m_updateVersion;
199  bool m_updateVersionHasBeenSet;
200  OptionState m_state;
201  bool m_stateHasBeenSet;
202  bool m_pendingDeletion;
203  bool m_pendingDeletionHasBeenSet;
204  };
205 
206 } // namespace Model
207 } // namespace CloudSearch
208 } // namespace Aws
OptionStatus & WithCreationDate(const Aws::Utils::DateTime &value)
Definition: OptionStatus.h:66
OptionStatus & WithState(const OptionState &value)
Definition: OptionStatus.h:163
const OptionState & GetState() const
Definition: OptionStatus.h:124
OptionStatus & WithCreationDate(Aws::Utils::DateTime &&value)
Definition: OptionStatus.h:71
void SetCreationDate(Aws::Utils::DateTime &&value)
Definition: OptionStatus.h:61
OptionStatus & WithUpdateDate(Aws::Utils::DateTime &&value)
Definition: OptionStatus.h:96
const Aws::Utils::DateTime & GetUpdateDate() const
Definition: OptionStatus.h:76
OptionStatus & WithUpdateDate(const Aws::Utils::DateTime &value)
Definition: OptionStatus.h:91
void SetState(OptionState &&value)
Definition: OptionStatus.h:150
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
void SetUpdateDate(const Aws::Utils::DateTime &value)
Definition: OptionStatus.h:81
void SetState(const OptionState &value)
Definition: OptionStatus.h:137
void SetCreationDate(const Aws::Utils::DateTime &value)
Definition: OptionStatus.h:56
#define AWS_CLOUDSEARCH_API
const Aws::Utils::DateTime & GetCreationDate() const
Definition: OptionStatus.h:51
OptionStatus & WithPendingDeletion(bool value)
Definition: OptionStatus.h:191
OptionStatus & WithUpdateVersion(int value)
Definition: OptionStatus.h:111
void SetUpdateDate(Aws::Utils::DateTime &&value)
Definition: OptionStatus.h:86
OptionStatus & WithState(OptionState &&value)
Definition: OptionStatus.h:176
JSON (JavaScript Object Notation).