AWS SDK for C++  0.14.3
AWS SDK for C++
AccessPoliciesStatus.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 
40  {
41  public:
44  AccessPoliciesStatus& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
45 
46  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
47  void OutputToStream(Aws::OStream& oStream, const char* location) const;
48 
49 
50  inline const Aws::String& GetOptions() const{ return m_options; }
51 
52 
53  inline void SetOptions(const Aws::String& value) { m_optionsHasBeenSet = true; m_options = value; }
54 
55 
56  inline void SetOptions(Aws::String&& value) { m_optionsHasBeenSet = true; m_options = value; }
57 
58 
59  inline void SetOptions(const char* value) { m_optionsHasBeenSet = true; m_options.assign(value); }
60 
61 
62  inline AccessPoliciesStatus& WithOptions(const Aws::String& value) { SetOptions(value); return *this;}
63 
64 
65  inline AccessPoliciesStatus& WithOptions(Aws::String&& value) { SetOptions(value); return *this;}
66 
67 
68  inline AccessPoliciesStatus& WithOptions(const char* value) { SetOptions(value); return *this;}
69 
70 
71  inline const OptionStatus& GetStatus() const{ return m_status; }
72 
73 
74  inline void SetStatus(const OptionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
75 
76 
77  inline void SetStatus(OptionStatus&& value) { m_statusHasBeenSet = true; m_status = value; }
78 
79 
80  inline AccessPoliciesStatus& WithStatus(const OptionStatus& value) { SetStatus(value); return *this;}
81 
82 
83  inline AccessPoliciesStatus& WithStatus(OptionStatus&& value) { SetStatus(value); return *this;}
84 
85  private:
86  Aws::String m_options;
87  bool m_optionsHasBeenSet;
88  OptionStatus m_status;
89  bool m_statusHasBeenSet;
90  };
91 
92 } // namespace Model
93 } // namespace CloudSearch
94 } // namespace Aws
AccessPoliciesStatus & WithStatus(const OptionStatus &value)
AccessPoliciesStatus & WithStatus(OptionStatus &&value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
AccessPoliciesStatus & WithOptions(const char *value)
#define AWS_CLOUDSEARCH_API
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AccessPoliciesStatus & WithOptions(Aws::String &&value)
JSON (JavaScript Object Notation).
AccessPoliciesStatus & WithOptions(const Aws::String &value)