AWS SDK for C++  0.12.9
AWS SDK for C++
DeploymentConfigInfo.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
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28 } // namespace Json
29 } // namespace Utils
30 namespace CodeDeploy
31 {
32 namespace Model
33 {
34 
39  {
40  public:
43  DeploymentConfigInfo& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
49  inline const Aws::String& GetDeploymentConfigId() const{ return m_deploymentConfigId; }
50 
54  inline void SetDeploymentConfigId(const Aws::String& value) { m_deploymentConfigIdHasBeenSet = true; m_deploymentConfigId = value; }
55 
59  inline void SetDeploymentConfigId(Aws::String&& value) { m_deploymentConfigIdHasBeenSet = true; m_deploymentConfigId = value; }
60 
64  inline void SetDeploymentConfigId(const char* value) { m_deploymentConfigIdHasBeenSet = true; m_deploymentConfigId.assign(value); }
65 
69  inline DeploymentConfigInfo& WithDeploymentConfigId(const Aws::String& value) { SetDeploymentConfigId(value); return *this;}
70 
74  inline DeploymentConfigInfo& WithDeploymentConfigId(Aws::String&& value) { SetDeploymentConfigId(value); return *this;}
75 
79  inline DeploymentConfigInfo& WithDeploymentConfigId(const char* value) { SetDeploymentConfigId(value); return *this;}
80 
84  inline const Aws::String& GetDeploymentConfigName() const{ return m_deploymentConfigName; }
85 
89  inline void SetDeploymentConfigName(const Aws::String& value) { m_deploymentConfigNameHasBeenSet = true; m_deploymentConfigName = value; }
90 
94  inline void SetDeploymentConfigName(Aws::String&& value) { m_deploymentConfigNameHasBeenSet = true; m_deploymentConfigName = value; }
95 
99  inline void SetDeploymentConfigName(const char* value) { m_deploymentConfigNameHasBeenSet = true; m_deploymentConfigName.assign(value); }
100 
104  inline DeploymentConfigInfo& WithDeploymentConfigName(const Aws::String& value) { SetDeploymentConfigName(value); return *this;}
105 
109  inline DeploymentConfigInfo& WithDeploymentConfigName(Aws::String&& value) { SetDeploymentConfigName(value); return *this;}
110 
114  inline DeploymentConfigInfo& WithDeploymentConfigName(const char* value) { SetDeploymentConfigName(value); return *this;}
115 
119  inline const MinimumHealthyHosts& GetMinimumHealthyHosts() const{ return m_minimumHealthyHosts; }
120 
124  inline void SetMinimumHealthyHosts(const MinimumHealthyHosts& value) { m_minimumHealthyHostsHasBeenSet = true; m_minimumHealthyHosts = value; }
125 
129  inline void SetMinimumHealthyHosts(MinimumHealthyHosts&& value) { m_minimumHealthyHostsHasBeenSet = true; m_minimumHealthyHosts = value; }
130 
134  inline DeploymentConfigInfo& WithMinimumHealthyHosts(const MinimumHealthyHosts& value) { SetMinimumHealthyHosts(value); return *this;}
135 
139  inline DeploymentConfigInfo& WithMinimumHealthyHosts(MinimumHealthyHosts&& value) { SetMinimumHealthyHosts(value); return *this;}
140 
144  inline const Aws::Utils::DateTime& GetCreateTime() const{ return m_createTime; }
145 
149  inline void SetCreateTime(const Aws::Utils::DateTime& value) { m_createTimeHasBeenSet = true; m_createTime = value; }
150 
154  inline void SetCreateTime(Aws::Utils::DateTime&& value) { m_createTimeHasBeenSet = true; m_createTime = value; }
155 
159  inline DeploymentConfigInfo& WithCreateTime(const Aws::Utils::DateTime& value) { SetCreateTime(value); return *this;}
160 
164  inline DeploymentConfigInfo& WithCreateTime(Aws::Utils::DateTime&& value) { SetCreateTime(value); return *this;}
165 
166  private:
167  Aws::String m_deploymentConfigId;
168  bool m_deploymentConfigIdHasBeenSet;
169  Aws::String m_deploymentConfigName;
170  bool m_deploymentConfigNameHasBeenSet;
171  MinimumHealthyHosts m_minimumHealthyHosts;
172  bool m_minimumHealthyHostsHasBeenSet;
173  Aws::Utils::DateTime m_createTime;
174  bool m_createTimeHasBeenSet;
175  };
176 
177 } // namespace Model
178 } // namespace CodeDeploy
179 } // namespace Aws
void SetMinimumHealthyHosts(const MinimumHealthyHosts &value)
DeploymentConfigInfo & WithMinimumHealthyHosts(MinimumHealthyHosts &&value)
DeploymentConfigInfo & WithDeploymentConfigName(Aws::String &&value)
DeploymentConfigInfo & WithCreateTime(Aws::Utils::DateTime &&value)
void SetDeploymentConfigId(const Aws::String &value)
DeploymentConfigInfo & WithDeploymentConfigId(const char *value)
const Aws::String & GetDeploymentConfigName() const
void SetCreateTime(const Aws::Utils::DateTime &value)
#define AWS_CODEDEPLOY_API
DeploymentConfigInfo & WithMinimumHealthyHosts(const MinimumHealthyHosts &value)
void SetMinimumHealthyHosts(MinimumHealthyHosts &&value)
const MinimumHealthyHosts & GetMinimumHealthyHosts() const
DeploymentConfigInfo & WithDeploymentConfigId(Aws::String &&value)
void SetDeploymentConfigName(const Aws::String &value)
DeploymentConfigInfo & WithDeploymentConfigName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::String & GetDeploymentConfigId() const
const Aws::Utils::DateTime & GetCreateTime() const
DeploymentConfigInfo & WithDeploymentConfigId(const Aws::String &value)
void SetCreateTime(Aws::Utils::DateTime &&value)
DeploymentConfigInfo & WithCreateTime(const Aws::Utils::DateTime &value)
JSON (JavaScript Object Notation).
DeploymentConfigInfo & WithDeploymentConfigName(const char *value)