AWS SDK for C++  0.12.9
AWS SDK for C++
Output.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 CloudFormation
30 {
31 namespace Model
32 {
33 
38  {
39  public:
40  Output();
41  Output(const Aws::Utils::Xml::XmlNode& xmlNode);
42  Output& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
43 
44  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
45  void OutputToStream(Aws::OStream& oStream, const char* location) const;
46 
50  inline const Aws::String& GetOutputKey() const{ return m_outputKey; }
51 
55  inline void SetOutputKey(const Aws::String& value) { m_outputKeyHasBeenSet = true; m_outputKey = value; }
56 
60  inline void SetOutputKey(Aws::String&& value) { m_outputKeyHasBeenSet = true; m_outputKey = value; }
61 
65  inline void SetOutputKey(const char* value) { m_outputKeyHasBeenSet = true; m_outputKey.assign(value); }
66 
70  inline Output& WithOutputKey(const Aws::String& value) { SetOutputKey(value); return *this;}
71 
75  inline Output& WithOutputKey(Aws::String&& value) { SetOutputKey(value); return *this;}
76 
80  inline Output& WithOutputKey(const char* value) { SetOutputKey(value); return *this;}
81 
85  inline const Aws::String& GetOutputValue() const{ return m_outputValue; }
86 
90  inline void SetOutputValue(const Aws::String& value) { m_outputValueHasBeenSet = true; m_outputValue = value; }
91 
95  inline void SetOutputValue(Aws::String&& value) { m_outputValueHasBeenSet = true; m_outputValue = value; }
96 
100  inline void SetOutputValue(const char* value) { m_outputValueHasBeenSet = true; m_outputValue.assign(value); }
101 
105  inline Output& WithOutputValue(const Aws::String& value) { SetOutputValue(value); return *this;}
106 
110  inline Output& WithOutputValue(Aws::String&& value) { SetOutputValue(value); return *this;}
111 
115  inline Output& WithOutputValue(const char* value) { SetOutputValue(value); return *this;}
116 
120  inline const Aws::String& GetDescription() const{ return m_description; }
121 
125  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
126 
130  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
131 
135  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
136 
140  inline Output& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
141 
145  inline Output& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
146 
150  inline Output& WithDescription(const char* value) { SetDescription(value); return *this;}
151 
152  private:
153  Aws::String m_outputKey;
154  bool m_outputKeyHasBeenSet;
155  Aws::String m_outputValue;
156  bool m_outputValueHasBeenSet;
157  Aws::String m_description;
158  bool m_descriptionHasBeenSet;
159  };
160 
161 } // namespace Model
162 } // namespace CloudFormation
163 } // namespace Aws
void SetOutputValue(const char *value)
Definition: Output.h:100
void SetOutputValue(const Aws::String &value)
Definition: Output.h:90
void SetDescription(Aws::String &&value)
Definition: Output.h:130
void SetOutputKey(Aws::String &&value)
Definition: Output.h:60
void SetOutputValue(Aws::String &&value)
Definition: Output.h:95
const Aws::String & GetDescription() const
Definition: Output.h:120
Output & WithOutputKey(const Aws::String &value)
Definition: Output.h:70
void SetOutputKey(const Aws::String &value)
Definition: Output.h:55
Output & WithDescription(const char *value)
Definition: Output.h:150
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
void SetDescription(const char *value)
Definition: Output.h:135
void SetOutputKey(const char *value)
Definition: Output.h:65
Output & WithOutputKey(const char *value)
Definition: Output.h:80
Output & WithDescription(const Aws::String &value)
Definition: Output.h:140
Output & WithOutputValue(const char *value)
Definition: Output.h:115
const Aws::String & GetOutputValue() const
Definition: Output.h:85
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Output & WithOutputValue(Aws::String &&value)
Definition: Output.h:110
#define AWS_CLOUDFORMATION_API
Output & WithOutputValue(const Aws::String &value)
Definition: Output.h:105
Output & WithOutputKey(Aws::String &&value)
Definition: Output.h:75
Output & WithDescription(Aws::String &&value)
Definition: Output.h:145
void SetDescription(const Aws::String &value)
Definition: Output.h:125
JSON (JavaScript Object Notation).
const Aws::String & GetOutputKey() const
Definition: Output.h:50