AWS SDK for C++  0.14.3
AWS SDK for C++
ClusterIamRole.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 Xml
25 {
26  class XmlNode;
27 } // namespace Xml
28 } // namespace Utils
29 namespace Redshift
30 {
31 namespace Model
32 {
33 
39  {
40  public:
43  ClusterIamRole& 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 
52  inline const Aws::String& GetIamRoleArn() const{ return m_iamRoleArn; }
53 
58  inline void SetIamRoleArn(const Aws::String& value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = value; }
59 
64  inline void SetIamRoleArn(Aws::String&& value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = value; }
65 
70  inline void SetIamRoleArn(const char* value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn.assign(value); }
71 
76  inline ClusterIamRole& WithIamRoleArn(const Aws::String& value) { SetIamRoleArn(value); return *this;}
77 
82  inline ClusterIamRole& WithIamRoleArn(Aws::String&& value) { SetIamRoleArn(value); return *this;}
83 
88  inline ClusterIamRole& WithIamRoleArn(const char* value) { SetIamRoleArn(value); return *this;}
89 
98  inline const Aws::String& GetApplyStatus() const{ return m_applyStatus; }
99 
108  inline void SetApplyStatus(const Aws::String& value) { m_applyStatusHasBeenSet = true; m_applyStatus = value; }
109 
118  inline void SetApplyStatus(Aws::String&& value) { m_applyStatusHasBeenSet = true; m_applyStatus = value; }
119 
128  inline void SetApplyStatus(const char* value) { m_applyStatusHasBeenSet = true; m_applyStatus.assign(value); }
129 
138  inline ClusterIamRole& WithApplyStatus(const Aws::String& value) { SetApplyStatus(value); return *this;}
139 
148  inline ClusterIamRole& WithApplyStatus(Aws::String&& value) { SetApplyStatus(value); return *this;}
149 
158  inline ClusterIamRole& WithApplyStatus(const char* value) { SetApplyStatus(value); return *this;}
159 
160  private:
161  Aws::String m_iamRoleArn;
162  bool m_iamRoleArnHasBeenSet;
163  Aws::String m_applyStatus;
164  bool m_applyStatusHasBeenSet;
165  };
166 
167 } // namespace Model
168 } // namespace Redshift
169 } // namespace Aws
ClusterIamRole & WithApplyStatus(const Aws::String &value)
const Aws::String & GetApplyStatus() const
ClusterIamRole & WithIamRoleArn(const Aws::String &value)
ClusterIamRole & WithApplyStatus(Aws::String &&value)
const Aws::String & GetIamRoleArn() const
ClusterIamRole & WithIamRoleArn(Aws::String &&value)
void SetIamRoleArn(const char *value)
#define AWS_REDSHIFT_API
void SetApplyStatus(Aws::String &&value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
ClusterIamRole & WithApplyStatus(const char *value)
void SetApplyStatus(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetIamRoleArn(const Aws::String &value)
ClusterIamRole & WithIamRoleArn(const char *value)
void SetApplyStatus(const Aws::String &value)
void SetIamRoleArn(Aws::String &&value)
JSON (JavaScript Object Notation).