AWS SDK for C++  0.14.3
AWS SDK for C++
GenericRevisionInfo.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  GenericRevisionInfo& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
49  inline const Aws::String& GetDescription() const{ return m_description; }
50 
54  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
55 
59  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
60 
64  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
65 
69  inline GenericRevisionInfo& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
70 
74  inline GenericRevisionInfo& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
75 
79  inline GenericRevisionInfo& WithDescription(const char* value) { SetDescription(value); return *this;}
80 
84  inline const Aws::Vector<Aws::String>& GetDeploymentGroups() const{ return m_deploymentGroups; }
85 
89  inline void SetDeploymentGroups(const Aws::Vector<Aws::String>& value) { m_deploymentGroupsHasBeenSet = true; m_deploymentGroups = value; }
90 
94  inline void SetDeploymentGroups(Aws::Vector<Aws::String>&& value) { m_deploymentGroupsHasBeenSet = true; m_deploymentGroups = value; }
95 
99  inline GenericRevisionInfo& WithDeploymentGroups(const Aws::Vector<Aws::String>& value) { SetDeploymentGroups(value); return *this;}
100 
104  inline GenericRevisionInfo& WithDeploymentGroups(Aws::Vector<Aws::String>&& value) { SetDeploymentGroups(value); return *this;}
105 
109  inline GenericRevisionInfo& AddDeploymentGroups(const Aws::String& value) { m_deploymentGroupsHasBeenSet = true; m_deploymentGroups.push_back(value); return *this; }
110 
114  inline GenericRevisionInfo& AddDeploymentGroups(Aws::String&& value) { m_deploymentGroupsHasBeenSet = true; m_deploymentGroups.push_back(value); return *this; }
115 
119  inline GenericRevisionInfo& AddDeploymentGroups(const char* value) { m_deploymentGroupsHasBeenSet = true; m_deploymentGroups.push_back(value); return *this; }
120 
124  inline const Aws::Utils::DateTime& GetFirstUsedTime() const{ return m_firstUsedTime; }
125 
129  inline void SetFirstUsedTime(const Aws::Utils::DateTime& value) { m_firstUsedTimeHasBeenSet = true; m_firstUsedTime = value; }
130 
134  inline void SetFirstUsedTime(Aws::Utils::DateTime&& value) { m_firstUsedTimeHasBeenSet = true; m_firstUsedTime = value; }
135 
139  inline GenericRevisionInfo& WithFirstUsedTime(const Aws::Utils::DateTime& value) { SetFirstUsedTime(value); return *this;}
140 
144  inline GenericRevisionInfo& WithFirstUsedTime(Aws::Utils::DateTime&& value) { SetFirstUsedTime(value); return *this;}
145 
149  inline const Aws::Utils::DateTime& GetLastUsedTime() const{ return m_lastUsedTime; }
150 
154  inline void SetLastUsedTime(const Aws::Utils::DateTime& value) { m_lastUsedTimeHasBeenSet = true; m_lastUsedTime = value; }
155 
159  inline void SetLastUsedTime(Aws::Utils::DateTime&& value) { m_lastUsedTimeHasBeenSet = true; m_lastUsedTime = value; }
160 
164  inline GenericRevisionInfo& WithLastUsedTime(const Aws::Utils::DateTime& value) { SetLastUsedTime(value); return *this;}
165 
169  inline GenericRevisionInfo& WithLastUsedTime(Aws::Utils::DateTime&& value) { SetLastUsedTime(value); return *this;}
170 
174  inline const Aws::Utils::DateTime& GetRegisterTime() const{ return m_registerTime; }
175 
179  inline void SetRegisterTime(const Aws::Utils::DateTime& value) { m_registerTimeHasBeenSet = true; m_registerTime = value; }
180 
184  inline void SetRegisterTime(Aws::Utils::DateTime&& value) { m_registerTimeHasBeenSet = true; m_registerTime = value; }
185 
189  inline GenericRevisionInfo& WithRegisterTime(const Aws::Utils::DateTime& value) { SetRegisterTime(value); return *this;}
190 
194  inline GenericRevisionInfo& WithRegisterTime(Aws::Utils::DateTime&& value) { SetRegisterTime(value); return *this;}
195 
196  private:
197  Aws::String m_description;
198  bool m_descriptionHasBeenSet;
199  Aws::Vector<Aws::String> m_deploymentGroups;
200  bool m_deploymentGroupsHasBeenSet;
201  Aws::Utils::DateTime m_firstUsedTime;
202  bool m_firstUsedTimeHasBeenSet;
203  Aws::Utils::DateTime m_lastUsedTime;
204  bool m_lastUsedTimeHasBeenSet;
205  Aws::Utils::DateTime m_registerTime;
206  bool m_registerTimeHasBeenSet;
207  };
208 
209 } // namespace Model
210 } // namespace CodeDeploy
211 } // namespace Aws
GenericRevisionInfo & WithDeploymentGroups(Aws::Vector< Aws::String > &&value)
GenericRevisionInfo & WithDescription(const char *value)
const Aws::Utils::DateTime & GetRegisterTime() const
void SetLastUsedTime(const Aws::Utils::DateTime &value)
GenericRevisionInfo & WithRegisterTime(Aws::Utils::DateTime &&value)
GenericRevisionInfo & WithRegisterTime(const Aws::Utils::DateTime &value)
GenericRevisionInfo & AddDeploymentGroups(const char *value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
void SetDescription(const Aws::String &value)
GenericRevisionInfo & AddDeploymentGroups(Aws::String &&value)
const Aws::Vector< Aws::String > & GetDeploymentGroups() const
GenericRevisionInfo & WithDescription(const Aws::String &value)
GenericRevisionInfo & AddDeploymentGroups(const Aws::String &value)
GenericRevisionInfo & WithLastUsedTime(Aws::Utils::DateTime &&value)
#define AWS_CODEDEPLOY_API
void SetFirstUsedTime(Aws::Utils::DateTime &&value)
void SetRegisterTime(Aws::Utils::DateTime &&value)
void SetRegisterTime(const Aws::Utils::DateTime &value)
void SetLastUsedTime(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetFirstUsedTime() const
GenericRevisionInfo & WithDeploymentGroups(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetFirstUsedTime(const Aws::Utils::DateTime &value)
GenericRevisionInfo & WithDescription(Aws::String &&value)
void SetDeploymentGroups(Aws::Vector< Aws::String > &&value)
GenericRevisionInfo & WithFirstUsedTime(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetLastUsedTime() const
void SetDeploymentGroups(const Aws::Vector< Aws::String > &value)
GenericRevisionInfo & WithLastUsedTime(const Aws::Utils::DateTime &value)
GenericRevisionInfo & WithFirstUsedTime(const Aws::Utils::DateTime &value)
JSON (JavaScript Object Notation).