AWS SDK for C++  0.14.3
AWS SDK for C++
ResourceTargetDefinition.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 CloudFormation
32 {
33 namespace Model
34 {
35 
41  {
42  public:
45  ResourceTargetDefinition& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
46 
47  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
48  void OutputToStream(Aws::OStream& oStream, const char* location) const;
49 
55  inline const ResourceAttribute& GetAttribute() const{ return m_attribute; }
56 
62  inline void SetAttribute(const ResourceAttribute& value) { m_attributeHasBeenSet = true; m_attribute = value; }
63 
69  inline void SetAttribute(ResourceAttribute&& value) { m_attributeHasBeenSet = true; m_attribute = value; }
70 
76  inline ResourceTargetDefinition& WithAttribute(const ResourceAttribute& value) { SetAttribute(value); return *this;}
77 
83  inline ResourceTargetDefinition& WithAttribute(ResourceAttribute&& value) { SetAttribute(value); return *this;}
84 
89  inline const Aws::String& GetName() const{ return m_name; }
90 
95  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
96 
101  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
102 
107  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
108 
113  inline ResourceTargetDefinition& WithName(const Aws::String& value) { SetName(value); return *this;}
114 
119  inline ResourceTargetDefinition& WithName(Aws::String&& value) { SetName(value); return *this;}
120 
125  inline ResourceTargetDefinition& WithName(const char* value) { SetName(value); return *this;}
126 
136  inline const RequiresRecreation& GetRequiresRecreation() const{ return m_requiresRecreation; }
137 
147  inline void SetRequiresRecreation(const RequiresRecreation& value) { m_requiresRecreationHasBeenSet = true; m_requiresRecreation = value; }
148 
158  inline void SetRequiresRecreation(RequiresRecreation&& value) { m_requiresRecreationHasBeenSet = true; m_requiresRecreation = value; }
159 
169  inline ResourceTargetDefinition& WithRequiresRecreation(const RequiresRecreation& value) { SetRequiresRecreation(value); return *this;}
170 
180  inline ResourceTargetDefinition& WithRequiresRecreation(RequiresRecreation&& value) { SetRequiresRecreation(value); return *this;}
181 
182  private:
183  ResourceAttribute m_attribute;
184  bool m_attributeHasBeenSet;
185  Aws::String m_name;
186  bool m_nameHasBeenSet;
187  RequiresRecreation m_requiresRecreation;
188  bool m_requiresRecreationHasBeenSet;
189  };
190 
191 } // namespace Model
192 } // namespace CloudFormation
193 } // namespace Aws
ResourceTargetDefinition & WithName(const char *value)
ResourceTargetDefinition & WithRequiresRecreation(RequiresRecreation &&value)
ResourceTargetDefinition & WithRequiresRecreation(const RequiresRecreation &value)
ResourceTargetDefinition & WithName(const Aws::String &value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
ResourceTargetDefinition & WithName(Aws::String &&value)
ResourceTargetDefinition & WithAttribute(ResourceAttribute &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_CLOUDFORMATION_API
void SetRequiresRecreation(const RequiresRecreation &value)
JSON (JavaScript Object Notation).
ResourceTargetDefinition & WithAttribute(const ResourceAttribute &value)