AWS SDK for C++  0.12.9
AWS SDK for C++
ClusterParameterGroupStatus.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
21 
22 namespace Aws
23 {
24 namespace Utils
25 {
26 namespace Xml
27 {
28  class XmlNode;
29 } // namespace Xml
30 } // namespace Utils
31 namespace Redshift
32 {
33 namespace Model
34 {
35 
40  {
41  public:
44  ClusterParameterGroupStatus& 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 
52  inline const Aws::String& GetParameterGroupName() const{ return m_parameterGroupName; }
53 
57  inline void SetParameterGroupName(const Aws::String& value) { m_parameterGroupNameHasBeenSet = true; m_parameterGroupName = value; }
58 
62  inline void SetParameterGroupName(Aws::String&& value) { m_parameterGroupNameHasBeenSet = true; m_parameterGroupName = value; }
63 
67  inline void SetParameterGroupName(const char* value) { m_parameterGroupNameHasBeenSet = true; m_parameterGroupName.assign(value); }
68 
72  inline ClusterParameterGroupStatus& WithParameterGroupName(const Aws::String& value) { SetParameterGroupName(value); return *this;}
73 
77  inline ClusterParameterGroupStatus& WithParameterGroupName(Aws::String&& value) { SetParameterGroupName(value); return *this;}
78 
82  inline ClusterParameterGroupStatus& WithParameterGroupName(const char* value) { SetParameterGroupName(value); return *this;}
83 
87  inline const Aws::String& GetParameterApplyStatus() const{ return m_parameterApplyStatus; }
88 
92  inline void SetParameterApplyStatus(const Aws::String& value) { m_parameterApplyStatusHasBeenSet = true; m_parameterApplyStatus = value; }
93 
97  inline void SetParameterApplyStatus(Aws::String&& value) { m_parameterApplyStatusHasBeenSet = true; m_parameterApplyStatus = value; }
98 
102  inline void SetParameterApplyStatus(const char* value) { m_parameterApplyStatusHasBeenSet = true; m_parameterApplyStatus.assign(value); }
103 
107  inline ClusterParameterGroupStatus& WithParameterApplyStatus(const Aws::String& value) { SetParameterApplyStatus(value); return *this;}
108 
112  inline ClusterParameterGroupStatus& WithParameterApplyStatus(Aws::String&& value) { SetParameterApplyStatus(value); return *this;}
113 
117  inline ClusterParameterGroupStatus& WithParameterApplyStatus(const char* value) { SetParameterApplyStatus(value); return *this;}
118 
126  inline const Aws::Vector<ClusterParameterStatus>& GetClusterParameterStatusList() const{ return m_clusterParameterStatusList; }
127 
135  inline void SetClusterParameterStatusList(const Aws::Vector<ClusterParameterStatus>& value) { m_clusterParameterStatusListHasBeenSet = true; m_clusterParameterStatusList = value; }
136 
144  inline void SetClusterParameterStatusList(Aws::Vector<ClusterParameterStatus>&& value) { m_clusterParameterStatusListHasBeenSet = true; m_clusterParameterStatusList = value; }
145 
153  inline ClusterParameterGroupStatus& WithClusterParameterStatusList(const Aws::Vector<ClusterParameterStatus>& value) { SetClusterParameterStatusList(value); return *this;}
154 
162  inline ClusterParameterGroupStatus& WithClusterParameterStatusList(Aws::Vector<ClusterParameterStatus>&& value) { SetClusterParameterStatusList(value); return *this;}
163 
171  inline ClusterParameterGroupStatus& AddClusterParameterStatusList(const ClusterParameterStatus& value) { m_clusterParameterStatusListHasBeenSet = true; m_clusterParameterStatusList.push_back(value); return *this; }
172 
180  inline ClusterParameterGroupStatus& AddClusterParameterStatusList(ClusterParameterStatus&& value) { m_clusterParameterStatusListHasBeenSet = true; m_clusterParameterStatusList.push_back(value); return *this; }
181 
182  private:
183  Aws::String m_parameterGroupName;
184  bool m_parameterGroupNameHasBeenSet;
185  Aws::String m_parameterApplyStatus;
186  bool m_parameterApplyStatusHasBeenSet;
187  Aws::Vector<ClusterParameterStatus> m_clusterParameterStatusList;
188  bool m_clusterParameterStatusListHasBeenSet;
189  };
190 
191 } // namespace Model
192 } // namespace Redshift
193 } // namespace Aws
ClusterParameterGroupStatus & WithParameterGroupName(const Aws::String &value)
void SetClusterParameterStatusList(Aws::Vector< ClusterParameterStatus > &&value)
const Aws::Vector< ClusterParameterStatus > & GetClusterParameterStatusList() const
ClusterParameterGroupStatus & WithClusterParameterStatusList(const Aws::Vector< ClusterParameterStatus > &value)
ClusterParameterGroupStatus & WithParameterApplyStatus(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
ClusterParameterGroupStatus & WithParameterApplyStatus(Aws::String &&value)
ClusterParameterGroupStatus & WithParameterGroupName(Aws::String &&value)
ClusterParameterGroupStatus & WithClusterParameterStatusList(Aws::Vector< ClusterParameterStatus > &&value)
#define AWS_REDSHIFT_API
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
ClusterParameterGroupStatus & WithParameterApplyStatus(const char *value)
ClusterParameterGroupStatus & WithParameterGroupName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ClusterParameterGroupStatus & AddClusterParameterStatusList(ClusterParameterStatus &&value)
ClusterParameterGroupStatus & AddClusterParameterStatusList(const ClusterParameterStatus &value)
void SetClusterParameterStatusList(const Aws::Vector< ClusterParameterStatus > &value)
JSON (JavaScript Object Notation).