AWS SDK for C++  0.14.3
AWS SDK for C++
ApprovalResult.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 Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace CodePipeline
30 {
31 namespace Model
32 {
33 
38  {
39  public:
42  ApprovalResult& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
48  inline const Aws::String& GetSummary() const{ return m_summary; }
49 
53  inline void SetSummary(const Aws::String& value) { m_summaryHasBeenSet = true; m_summary = value; }
54 
58  inline void SetSummary(Aws::String&& value) { m_summaryHasBeenSet = true; m_summary = value; }
59 
63  inline void SetSummary(const char* value) { m_summaryHasBeenSet = true; m_summary.assign(value); }
64 
68  inline ApprovalResult& WithSummary(const Aws::String& value) { SetSummary(value); return *this;}
69 
73  inline ApprovalResult& WithSummary(Aws::String&& value) { SetSummary(value); return *this;}
74 
78  inline ApprovalResult& WithSummary(const char* value) { SetSummary(value); return *this;}
79 
84  inline const ApprovalStatus& GetStatus() const{ return m_status; }
85 
90  inline void SetStatus(const ApprovalStatus& value) { m_statusHasBeenSet = true; m_status = value; }
91 
96  inline void SetStatus(ApprovalStatus&& value) { m_statusHasBeenSet = true; m_status = value; }
97 
102  inline ApprovalResult& WithStatus(const ApprovalStatus& value) { SetStatus(value); return *this;}
103 
108  inline ApprovalResult& WithStatus(ApprovalStatus&& value) { SetStatus(value); return *this;}
109 
110  private:
111  Aws::String m_summary;
112  bool m_summaryHasBeenSet;
113  ApprovalStatus m_status;
114  bool m_statusHasBeenSet;
115  };
116 
117 } // namespace Model
118 } // namespace CodePipeline
119 } // namespace Aws
ApprovalResult & WithStatus(const ApprovalStatus &value)
void SetStatus(const ApprovalStatus &value)
const Aws::String & GetSummary() const
void SetSummary(const Aws::String &value)
ApprovalResult & WithSummary(const char *value)
void SetStatus(ApprovalStatus &&value)
ApprovalResult & WithSummary(const Aws::String &value)
ApprovalResult & WithSummary(Aws::String &&value)
#define AWS_CODEPIPELINE_API
void SetSummary(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ApprovalResult & WithStatus(ApprovalStatus &&value)
JSON (JavaScript Object Notation).
const ApprovalStatus & GetStatus() const