AWS SDK for C++  0.14.3
AWS SDK for C++
ResourceChangeDetail.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
22 
23 namespace Aws
24 {
25 namespace Utils
26 {
27 namespace Xml
28 {
29  class XmlNode;
30 } // namespace Xml
31 } // namespace Utils
32 namespace CloudFormation
33 {
34 namespace Model
35 {
36 
43  {
44  public:
47  ResourceChangeDetail& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
48 
49  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
50  void OutputToStream(Aws::OStream& oStream, const char* location) const;
51 
57  inline const ResourceTargetDefinition& GetTarget() const{ return m_target; }
58 
64  inline void SetTarget(const ResourceTargetDefinition& value) { m_targetHasBeenSet = true; m_target = value; }
65 
71  inline void SetTarget(ResourceTargetDefinition&& value) { m_targetHasBeenSet = true; m_target = value; }
72 
78  inline ResourceChangeDetail& WithTarget(const ResourceTargetDefinition& value) { SetTarget(value); return *this;}
79 
85  inline ResourceChangeDetail& WithTarget(ResourceTargetDefinition&& value) { SetTarget(value); return *this;}
86 
103  inline const EvaluationType& GetEvaluation() const{ return m_evaluation; }
104 
121  inline void SetEvaluation(const EvaluationType& value) { m_evaluationHasBeenSet = true; m_evaluation = value; }
122 
139  inline void SetEvaluation(EvaluationType&& value) { m_evaluationHasBeenSet = true; m_evaluation = value; }
140 
157  inline ResourceChangeDetail& WithEvaluation(const EvaluationType& value) { SetEvaluation(value); return *this;}
158 
175  inline ResourceChangeDetail& WithEvaluation(EvaluationType&& value) { SetEvaluation(value); return *this;}
176 
198  inline const ChangeSource& GetChangeSource() const{ return m_changeSource; }
199 
221  inline void SetChangeSource(const ChangeSource& value) { m_changeSourceHasBeenSet = true; m_changeSource = value; }
222 
244  inline void SetChangeSource(ChangeSource&& value) { m_changeSourceHasBeenSet = true; m_changeSource = value; }
245 
267  inline ResourceChangeDetail& WithChangeSource(const ChangeSource& value) { SetChangeSource(value); return *this;}
268 
290  inline ResourceChangeDetail& WithChangeSource(ChangeSource&& value) { SetChangeSource(value); return *this;}
291 
301  inline const Aws::String& GetCausingEntity() const{ return m_causingEntity; }
302 
312  inline void SetCausingEntity(const Aws::String& value) { m_causingEntityHasBeenSet = true; m_causingEntity = value; }
313 
323  inline void SetCausingEntity(Aws::String&& value) { m_causingEntityHasBeenSet = true; m_causingEntity = value; }
324 
334  inline void SetCausingEntity(const char* value) { m_causingEntityHasBeenSet = true; m_causingEntity.assign(value); }
335 
345  inline ResourceChangeDetail& WithCausingEntity(const Aws::String& value) { SetCausingEntity(value); return *this;}
346 
356  inline ResourceChangeDetail& WithCausingEntity(Aws::String&& value) { SetCausingEntity(value); return *this;}
357 
367  inline ResourceChangeDetail& WithCausingEntity(const char* value) { SetCausingEntity(value); return *this;}
368 
369  private:
370  ResourceTargetDefinition m_target;
371  bool m_targetHasBeenSet;
372  EvaluationType m_evaluation;
373  bool m_evaluationHasBeenSet;
374  ChangeSource m_changeSource;
375  bool m_changeSourceHasBeenSet;
376  Aws::String m_causingEntity;
377  bool m_causingEntityHasBeenSet;
378  };
379 
380 } // namespace Model
381 } // namespace CloudFormation
382 } // namespace Aws
ResourceChangeDetail & WithTarget(const ResourceTargetDefinition &value)
ResourceChangeDetail & WithEvaluation(const EvaluationType &value)
void SetTarget(ResourceTargetDefinition &&value)
const ResourceTargetDefinition & GetTarget() const
ResourceChangeDetail & WithChangeSource(ChangeSource &&value)
ResourceChangeDetail & WithChangeSource(const ChangeSource &value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
ResourceChangeDetail & WithCausingEntity(const Aws::String &value)
ResourceChangeDetail & WithEvaluation(EvaluationType &&value)
ResourceChangeDetail & WithTarget(ResourceTargetDefinition &&value)
void SetTarget(const ResourceTargetDefinition &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_CLOUDFORMATION_API
ResourceChangeDetail & WithCausingEntity(Aws::String &&value)
ResourceChangeDetail & WithCausingEntity(const char *value)
JSON (JavaScript Object Notation).