AWS SDK for C++  0.14.3
AWS SDK for C++
DocumentIdentifier.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>
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28 } // namespace Json
29 } // namespace Utils
30 namespace SSM
31 {
32 namespace Model
33 {
34 
39  {
40  public:
43  DocumentIdentifier& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
49  inline const Aws::String& GetName() const{ return m_name; }
50 
54  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
55 
59  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
60 
64  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
65 
69  inline DocumentIdentifier& WithName(const Aws::String& value) { SetName(value); return *this;}
70 
74  inline DocumentIdentifier& WithName(Aws::String&& value) { SetName(value); return *this;}
75 
79  inline DocumentIdentifier& WithName(const char* value) { SetName(value); return *this;}
80 
84  inline const Aws::String& GetOwner() const{ return m_owner; }
85 
89  inline void SetOwner(const Aws::String& value) { m_ownerHasBeenSet = true; m_owner = value; }
90 
94  inline void SetOwner(Aws::String&& value) { m_ownerHasBeenSet = true; m_owner = value; }
95 
99  inline void SetOwner(const char* value) { m_ownerHasBeenSet = true; m_owner.assign(value); }
100 
104  inline DocumentIdentifier& WithOwner(const Aws::String& value) { SetOwner(value); return *this;}
105 
109  inline DocumentIdentifier& WithOwner(Aws::String&& value) { SetOwner(value); return *this;}
110 
114  inline DocumentIdentifier& WithOwner(const char* value) { SetOwner(value); return *this;}
115 
119  inline const Aws::Vector<PlatformType>& GetPlatformTypes() const{ return m_platformTypes; }
120 
124  inline void SetPlatformTypes(const Aws::Vector<PlatformType>& value) { m_platformTypesHasBeenSet = true; m_platformTypes = value; }
125 
129  inline void SetPlatformTypes(Aws::Vector<PlatformType>&& value) { m_platformTypesHasBeenSet = true; m_platformTypes = value; }
130 
134  inline DocumentIdentifier& WithPlatformTypes(const Aws::Vector<PlatformType>& value) { SetPlatformTypes(value); return *this;}
135 
139  inline DocumentIdentifier& WithPlatformTypes(Aws::Vector<PlatformType>&& value) { SetPlatformTypes(value); return *this;}
140 
144  inline DocumentIdentifier& AddPlatformTypes(const PlatformType& value) { m_platformTypesHasBeenSet = true; m_platformTypes.push_back(value); return *this; }
145 
149  inline DocumentIdentifier& AddPlatformTypes(PlatformType&& value) { m_platformTypesHasBeenSet = true; m_platformTypes.push_back(value); return *this; }
150 
151  private:
152  Aws::String m_name;
153  bool m_nameHasBeenSet;
154  Aws::String m_owner;
155  bool m_ownerHasBeenSet;
156  Aws::Vector<PlatformType> m_platformTypes;
157  bool m_platformTypesHasBeenSet;
158  };
159 
160 } // namespace Model
161 } // namespace SSM
162 } // namespace Aws
DocumentIdentifier & WithPlatformTypes(const Aws::Vector< PlatformType > &value)
void SetOwner(Aws::String &&value)
DocumentIdentifier & WithPlatformTypes(Aws::Vector< PlatformType > &&value)
void SetOwner(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
void SetPlatformTypes(Aws::Vector< PlatformType > &&value)
const Aws::String & GetOwner() const
const Aws::Vector< PlatformType > & GetPlatformTypes() const
void SetPlatformTypes(const Aws::Vector< PlatformType > &value)
DocumentIdentifier & WithOwner(Aws::String &&value)
DocumentIdentifier & WithOwner(const Aws::String &value)
DocumentIdentifier & AddPlatformTypes(const PlatformType &value)
const Aws::String & GetName() const
void SetName(const Aws::String &value)
void SetName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DocumentIdentifier & WithName(Aws::String &&value)
DocumentIdentifier & WithName(const Aws::String &value)
#define AWS_SSM_API
Definition: SSM_EXPORTS.h:37
DocumentIdentifier & WithOwner(const char *value)
DocumentIdentifier & AddPlatformTypes(PlatformType &&value)
JSON (JavaScript Object Notation).
DocumentIdentifier & WithName(const char *value)