AWS SDK for C++  0.12.9
AWS SDK for C++
ApplicationInfo.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:
42  ApplicationInfo& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
48  inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
49 
53  inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; }
54 
58  inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; }
59 
63  inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); }
64 
68  inline ApplicationInfo& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
69 
73  inline ApplicationInfo& WithApplicationId(Aws::String&& value) { SetApplicationId(value); return *this;}
74 
78  inline ApplicationInfo& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
79 
83  inline const Aws::String& GetApplicationName() const{ return m_applicationName; }
84 
88  inline void SetApplicationName(const Aws::String& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; }
89 
93  inline void SetApplicationName(Aws::String&& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; }
94 
98  inline void SetApplicationName(const char* value) { m_applicationNameHasBeenSet = true; m_applicationName.assign(value); }
99 
103  inline ApplicationInfo& WithApplicationName(const Aws::String& value) { SetApplicationName(value); return *this;}
104 
108  inline ApplicationInfo& WithApplicationName(Aws::String&& value) { SetApplicationName(value); return *this;}
109 
113  inline ApplicationInfo& WithApplicationName(const char* value) { SetApplicationName(value); return *this;}
114 
118  inline const Aws::Utils::DateTime& GetCreateTime() const{ return m_createTime; }
119 
123  inline void SetCreateTime(const Aws::Utils::DateTime& value) { m_createTimeHasBeenSet = true; m_createTime = value; }
124 
128  inline void SetCreateTime(Aws::Utils::DateTime&& value) { m_createTimeHasBeenSet = true; m_createTime = value; }
129 
133  inline ApplicationInfo& WithCreateTime(const Aws::Utils::DateTime& value) { SetCreateTime(value); return *this;}
134 
138  inline ApplicationInfo& WithCreateTime(Aws::Utils::DateTime&& value) { SetCreateTime(value); return *this;}
139 
144  inline bool GetLinkedToGitHub() const{ return m_linkedToGitHub; }
145 
150  inline void SetLinkedToGitHub(bool value) { m_linkedToGitHubHasBeenSet = true; m_linkedToGitHub = value; }
151 
156  inline ApplicationInfo& WithLinkedToGitHub(bool value) { SetLinkedToGitHub(value); return *this;}
157 
158  private:
159  Aws::String m_applicationId;
160  bool m_applicationIdHasBeenSet;
161  Aws::String m_applicationName;
162  bool m_applicationNameHasBeenSet;
163  Aws::Utils::DateTime m_createTime;
164  bool m_createTimeHasBeenSet;
165  bool m_linkedToGitHub;
166  bool m_linkedToGitHubHasBeenSet;
167  };
168 
169 } // namespace Model
170 } // namespace CodeDeploy
171 } // namespace Aws
void SetApplicationName(const char *value)
void SetApplicationId(const char *value)
ApplicationInfo & WithCreateTime(Aws::Utils::DateTime &&value)
ApplicationInfo & WithApplicationId(const Aws::String &value)
void SetCreateTime(const Aws::Utils::DateTime &value)
ApplicationInfo & WithApplicationId(const char *value)
ApplicationInfo & WithCreateTime(const Aws::Utils::DateTime &value)
#define AWS_CODEDEPLOY_API
ApplicationInfo & WithApplicationName(const Aws::String &value)
ApplicationInfo & WithApplicationName(Aws::String &&value)
void SetApplicationId(Aws::String &&value)
ApplicationInfo & WithLinkedToGitHub(bool value)
ApplicationInfo & WithApplicationName(const char *value)
const Aws::String & GetApplicationId() const
const Aws::Utils::DateTime & GetCreateTime() const
void SetApplicationId(const Aws::String &value)
ApplicationInfo & WithApplicationId(Aws::String &&value)
void SetCreateTime(Aws::Utils::DateTime &&value)
void SetApplicationName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetApplicationName(const Aws::String &value)
const Aws::String & GetApplicationName() const
JSON (JavaScript Object Notation).