AWS SDK for C++  0.14.3
AWS SDK for C++
DocumentDescription.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
16 #include <aws/ssm/SSM_EXPORTS.h>
24 
25 namespace Aws
26 {
27 namespace Utils
28 {
29 namespace Json
30 {
31  class JsonValue;
32 } // namespace Json
33 } // namespace Utils
34 namespace SSM
35 {
36 namespace Model
37 {
38 
43  {
44  public:
47  DocumentDescription& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
48  Aws::Utils::Json::JsonValue Jsonize() const;
49 
54  inline const Aws::String& GetSha1() const{ return m_sha1; }
55 
60  inline void SetSha1(const Aws::String& value) { m_sha1HasBeenSet = true; m_sha1 = value; }
61 
66  inline void SetSha1(Aws::String&& value) { m_sha1HasBeenSet = true; m_sha1 = value; }
67 
72  inline void SetSha1(const char* value) { m_sha1HasBeenSet = true; m_sha1.assign(value); }
73 
78  inline DocumentDescription& WithSha1(const Aws::String& value) { SetSha1(value); return *this;}
79 
84  inline DocumentDescription& WithSha1(Aws::String&& value) { SetSha1(value); return *this;}
85 
90  inline DocumentDescription& WithSha1(const char* value) { SetSha1(value); return *this;}
91 
96  inline const Aws::String& GetHash() const{ return m_hash; }
97 
102  inline void SetHash(const Aws::String& value) { m_hashHasBeenSet = true; m_hash = value; }
103 
108  inline void SetHash(Aws::String&& value) { m_hashHasBeenSet = true; m_hash = value; }
109 
114  inline void SetHash(const char* value) { m_hashHasBeenSet = true; m_hash.assign(value); }
115 
120  inline DocumentDescription& WithHash(const Aws::String& value) { SetHash(value); return *this;}
121 
126  inline DocumentDescription& WithHash(Aws::String&& value) { SetHash(value); return *this;}
127 
132  inline DocumentDescription& WithHash(const char* value) { SetHash(value); return *this;}
133 
137  inline const DocumentHashType& GetHashType() const{ return m_hashType; }
138 
142  inline void SetHashType(const DocumentHashType& value) { m_hashTypeHasBeenSet = true; m_hashType = value; }
143 
147  inline void SetHashType(DocumentHashType&& value) { m_hashTypeHasBeenSet = true; m_hashType = value; }
148 
152  inline DocumentDescription& WithHashType(const DocumentHashType& value) { SetHashType(value); return *this;}
153 
157  inline DocumentDescription& WithHashType(DocumentHashType&& value) { SetHashType(value); return *this;}
158 
162  inline const Aws::String& GetName() const{ return m_name; }
163 
167  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
168 
172  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
173 
177  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
178 
182  inline DocumentDescription& WithName(const Aws::String& value) { SetName(value); return *this;}
183 
187  inline DocumentDescription& WithName(Aws::String&& value) { SetName(value); return *this;}
188 
192  inline DocumentDescription& WithName(const char* value) { SetName(value); return *this;}
193 
197  inline const Aws::String& GetOwner() const{ return m_owner; }
198 
202  inline void SetOwner(const Aws::String& value) { m_ownerHasBeenSet = true; m_owner = value; }
203 
207  inline void SetOwner(Aws::String&& value) { m_ownerHasBeenSet = true; m_owner = value; }
208 
212  inline void SetOwner(const char* value) { m_ownerHasBeenSet = true; m_owner.assign(value); }
213 
217  inline DocumentDescription& WithOwner(const Aws::String& value) { SetOwner(value); return *this;}
218 
222  inline DocumentDescription& WithOwner(Aws::String&& value) { SetOwner(value); return *this;}
223 
227  inline DocumentDescription& WithOwner(const char* value) { SetOwner(value); return *this;}
228 
232  inline const Aws::Utils::DateTime& GetCreatedDate() const{ return m_createdDate; }
233 
237  inline void SetCreatedDate(const Aws::Utils::DateTime& value) { m_createdDateHasBeenSet = true; m_createdDate = value; }
238 
242  inline void SetCreatedDate(Aws::Utils::DateTime&& value) { m_createdDateHasBeenSet = true; m_createdDate = value; }
243 
247  inline DocumentDescription& WithCreatedDate(const Aws::Utils::DateTime& value) { SetCreatedDate(value); return *this;}
248 
252  inline DocumentDescription& WithCreatedDate(Aws::Utils::DateTime&& value) { SetCreatedDate(value); return *this;}
253 
257  inline const DocumentStatus& GetStatus() const{ return m_status; }
258 
262  inline void SetStatus(const DocumentStatus& value) { m_statusHasBeenSet = true; m_status = value; }
263 
267  inline void SetStatus(DocumentStatus&& value) { m_statusHasBeenSet = true; m_status = value; }
268 
272  inline DocumentDescription& WithStatus(const DocumentStatus& value) { SetStatus(value); return *this;}
273 
277  inline DocumentDescription& WithStatus(DocumentStatus&& value) { SetStatus(value); return *this;}
278 
282  inline const Aws::String& GetDescription() const{ return m_description; }
283 
287  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
288 
292  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
293 
297  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
298 
302  inline DocumentDescription& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
303 
307  inline DocumentDescription& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
308 
312  inline DocumentDescription& WithDescription(const char* value) { SetDescription(value); return *this;}
313 
317  inline const Aws::Vector<DocumentParameter>& GetParameters() const{ return m_parameters; }
318 
322  inline void SetParameters(const Aws::Vector<DocumentParameter>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
323 
327  inline void SetParameters(Aws::Vector<DocumentParameter>&& value) { m_parametersHasBeenSet = true; m_parameters = value; }
328 
332  inline DocumentDescription& WithParameters(const Aws::Vector<DocumentParameter>& value) { SetParameters(value); return *this;}
333 
337  inline DocumentDescription& WithParameters(Aws::Vector<DocumentParameter>&& value) { SetParameters(value); return *this;}
338 
342  inline DocumentDescription& AddParameters(const DocumentParameter& value) { m_parametersHasBeenSet = true; m_parameters.push_back(value); return *this; }
343 
347  inline DocumentDescription& AddParameters(DocumentParameter&& value) { m_parametersHasBeenSet = true; m_parameters.push_back(value); return *this; }
348 
352  inline const Aws::Vector<PlatformType>& GetPlatformTypes() const{ return m_platformTypes; }
353 
357  inline void SetPlatformTypes(const Aws::Vector<PlatformType>& value) { m_platformTypesHasBeenSet = true; m_platformTypes = value; }
358 
362  inline void SetPlatformTypes(Aws::Vector<PlatformType>&& value) { m_platformTypesHasBeenSet = true; m_platformTypes = value; }
363 
367  inline DocumentDescription& WithPlatformTypes(const Aws::Vector<PlatformType>& value) { SetPlatformTypes(value); return *this;}
368 
372  inline DocumentDescription& WithPlatformTypes(Aws::Vector<PlatformType>&& value) { SetPlatformTypes(value); return *this;}
373 
377  inline DocumentDescription& AddPlatformTypes(const PlatformType& value) { m_platformTypesHasBeenSet = true; m_platformTypes.push_back(value); return *this; }
378 
382  inline DocumentDescription& AddPlatformTypes(PlatformType&& value) { m_platformTypesHasBeenSet = true; m_platformTypes.push_back(value); return *this; }
383 
384  private:
385  Aws::String m_sha1;
386  bool m_sha1HasBeenSet;
387  Aws::String m_hash;
388  bool m_hashHasBeenSet;
389  DocumentHashType m_hashType;
390  bool m_hashTypeHasBeenSet;
391  Aws::String m_name;
392  bool m_nameHasBeenSet;
393  Aws::String m_owner;
394  bool m_ownerHasBeenSet;
395  Aws::Utils::DateTime m_createdDate;
396  bool m_createdDateHasBeenSet;
397  DocumentStatus m_status;
398  bool m_statusHasBeenSet;
399  Aws::String m_description;
400  bool m_descriptionHasBeenSet;
401  Aws::Vector<DocumentParameter> m_parameters;
402  bool m_parametersHasBeenSet;
403  Aws::Vector<PlatformType> m_platformTypes;
404  bool m_platformTypesHasBeenSet;
405  };
406 
407 } // namespace Model
408 } // namespace SSM
409 } // namespace Aws
DocumentDescription & WithDescription(const char *value)
const Aws::Vector< PlatformType > & GetPlatformTypes() const
DocumentDescription & WithCreatedDate(const Aws::Utils::DateTime &value)
DocumentDescription & WithSha1(const Aws::String &value)
void SetOwner(const Aws::String &value)
DocumentDescription & WithStatus(const DocumentStatus &value)
DocumentDescription & WithParameters(const Aws::Vector< DocumentParameter > &value)
void SetDescription(Aws::String &&value)
const Aws::String & GetHash() const
void SetStatus(DocumentStatus &&value)
DocumentDescription & WithParameters(Aws::Vector< DocumentParameter > &&value)
void SetDescription(const Aws::String &value)
DocumentDescription & WithName(const Aws::String &value)
DocumentDescription & WithName(Aws::String &&value)
void SetHashType(const DocumentHashType &value)
DocumentDescription & AddPlatformTypes(PlatformType &&value)
DocumentDescription & WithHash(const char *value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
void SetParameters(Aws::Vector< DocumentParameter > &&value)
DocumentDescription & WithDescription(Aws::String &&value)
void SetParameters(const Aws::Vector< DocumentParameter > &value)
void SetSha1(const Aws::String &value)
DocumentDescription & AddParameters(const DocumentParameter &value)
const Aws::String & GetDescription() const
const Aws::Utils::DateTime & GetCreatedDate() const
DocumentDescription & WithHash(Aws::String &&value)
DocumentDescription & WithStatus(DocumentStatus &&value)
DocumentDescription & WithDescription(const Aws::String &value)
void SetHashType(DocumentHashType &&value)
DocumentDescription & AddPlatformTypes(const PlatformType &value)
const Aws::Vector< DocumentParameter > & GetParameters() const
DocumentDescription & WithName(const char *value)
void SetName(const Aws::String &value)
const Aws::String & GetName() const
DocumentDescription & AddParameters(DocumentParameter &&value)
const Aws::String & GetOwner() const
DocumentDescription & WithSha1(Aws::String &&value)
void SetStatus(const DocumentStatus &value)
const Aws::String & GetSha1() const
DocumentDescription & WithHash(const Aws::String &value)
void SetCreatedDate(const Aws::Utils::DateTime &value)
DocumentDescription & WithHashType(const DocumentHashType &value)
const DocumentStatus & GetStatus() const
DocumentDescription & WithOwner(const Aws::String &value)
DocumentDescription & WithPlatformTypes(Aws::Vector< PlatformType > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DocumentDescription & WithSha1(const char *value)
#define AWS_SSM_API
Definition: SSM_EXPORTS.h:37
DocumentDescription & WithOwner(const char *value)
DocumentDescription & WithOwner(Aws::String &&value)
void SetPlatformTypes(const Aws::Vector< PlatformType > &value)
DocumentDescription & WithPlatformTypes(const Aws::Vector< PlatformType > &value)
DocumentDescription & WithHashType(DocumentHashType &&value)
const DocumentHashType & GetHashType() const
void SetCreatedDate(Aws::Utils::DateTime &&value)
void SetPlatformTypes(Aws::Vector< PlatformType > &&value)
JSON (JavaScript Object Notation).
DocumentDescription & WithCreatedDate(Aws::Utils::DateTime &&value)
void SetHash(const Aws::String &value)