AWS SDK for C++  0.14.3
AWS SDK for C++
RevisionInfo.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 CodeDeploy
30 {
31 namespace Model
32 {
33 
38  {
39  public:
40  RevisionInfo();
41  RevisionInfo(const Aws::Utils::Json::JsonValue& jsonValue);
42  RevisionInfo& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
45 
46  inline const RevisionLocation& GetRevisionLocation() const{ return m_revisionLocation; }
47 
48 
49  inline void SetRevisionLocation(const RevisionLocation& value) { m_revisionLocationHasBeenSet = true; m_revisionLocation = value; }
50 
51 
52  inline void SetRevisionLocation(RevisionLocation&& value) { m_revisionLocationHasBeenSet = true; m_revisionLocation = value; }
53 
54 
55  inline RevisionInfo& WithRevisionLocation(const RevisionLocation& value) { SetRevisionLocation(value); return *this;}
56 
57 
58  inline RevisionInfo& WithRevisionLocation(RevisionLocation&& value) { SetRevisionLocation(value); return *this;}
59 
60 
61  inline const GenericRevisionInfo& GetGenericRevisionInfo() const{ return m_genericRevisionInfo; }
62 
63 
64  inline void SetGenericRevisionInfo(const GenericRevisionInfo& value) { m_genericRevisionInfoHasBeenSet = true; m_genericRevisionInfo = value; }
65 
66 
67  inline void SetGenericRevisionInfo(GenericRevisionInfo&& value) { m_genericRevisionInfoHasBeenSet = true; m_genericRevisionInfo = value; }
68 
69 
70  inline RevisionInfo& WithGenericRevisionInfo(const GenericRevisionInfo& value) { SetGenericRevisionInfo(value); return *this;}
71 
72 
73  inline RevisionInfo& WithGenericRevisionInfo(GenericRevisionInfo&& value) { SetGenericRevisionInfo(value); return *this;}
74 
75  private:
76  RevisionLocation m_revisionLocation;
77  bool m_revisionLocationHasBeenSet;
78  GenericRevisionInfo m_genericRevisionInfo;
79  bool m_genericRevisionInfoHasBeenSet;
80  };
81 
82 } // namespace Model
83 } // namespace CodeDeploy
84 } // namespace Aws
void SetRevisionLocation(const RevisionLocation &value)
Definition: RevisionInfo.h:49
void SetRevisionLocation(RevisionLocation &&value)
Definition: RevisionInfo.h:52
RevisionInfo & WithGenericRevisionInfo(const GenericRevisionInfo &value)
Definition: RevisionInfo.h:70
void SetGenericRevisionInfo(GenericRevisionInfo &&value)
Definition: RevisionInfo.h:67
#define AWS_CODEDEPLOY_API
RevisionInfo & WithRevisionLocation(const RevisionLocation &value)
Definition: RevisionInfo.h:55
const GenericRevisionInfo & GetGenericRevisionInfo() const
Definition: RevisionInfo.h:61
const RevisionLocation & GetRevisionLocation() const
Definition: RevisionInfo.h:46
RevisionInfo & WithRevisionLocation(RevisionLocation &&value)
Definition: RevisionInfo.h:58
void SetGenericRevisionInfo(const GenericRevisionInfo &value)
Definition: RevisionInfo.h:64
RevisionInfo & WithGenericRevisionInfo(GenericRevisionInfo &&value)
Definition: RevisionInfo.h:73
JSON (JavaScript Object Notation).