AWS SDK for C++  0.14.3
AWS SDK for C++
GetDocumentResult.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>
18 
19 namespace Aws
20 {
21 template<typename RESULT_TYPE>
22 class AmazonWebServiceResult;
23 
24 namespace Utils
25 {
26 namespace Json
27 {
28  class JsonValue;
29 } // namespace Json
30 } // namespace Utils
31 namespace SSM
32 {
33 namespace Model
34 {
36  {
37  public:
41 
45  inline const Aws::String& GetName() const{ return m_name; }
46 
50  inline void SetName(const Aws::String& value) { m_name = value; }
51 
55  inline void SetName(Aws::String&& value) { m_name = value; }
56 
60  inline void SetName(const char* value) { m_name.assign(value); }
61 
65  inline GetDocumentResult& WithName(const Aws::String& value) { SetName(value); return *this;}
66 
70  inline GetDocumentResult& WithName(Aws::String&& value) { SetName(value); return *this;}
71 
75  inline GetDocumentResult& WithName(const char* value) { SetName(value); return *this;}
76 
80  inline const Aws::String& GetContent() const{ return m_content; }
81 
85  inline void SetContent(const Aws::String& value) { m_content = value; }
86 
90  inline void SetContent(Aws::String&& value) { m_content = value; }
91 
95  inline void SetContent(const char* value) { m_content.assign(value); }
96 
100  inline GetDocumentResult& WithContent(const Aws::String& value) { SetContent(value); return *this;}
101 
105  inline GetDocumentResult& WithContent(Aws::String&& value) { SetContent(value); return *this;}
106 
110  inline GetDocumentResult& WithContent(const char* value) { SetContent(value); return *this;}
111 
112  private:
113  Aws::String m_name;
114  Aws::String m_content;
115  };
116 
117 } // namespace Model
118 } // namespace SSM
119 } // namespace Aws
void SetContent(const Aws::String &value)
const Aws::String & GetContent() const
GetDocumentResult & WithName(const Aws::String &value)
GetDocumentResult & WithName(Aws::String &&value)
void SetName(const Aws::String &value)
GetDocumentResult & WithName(const char *value)
GetDocumentResult & WithContent(const char *value)
const Aws::String & GetName() const
void SetContent(const char *value)
void SetName(Aws::String &&value)
GetDocumentResult & WithContent(const Aws::String &value)
void SetContent(Aws::String &&value)
GetDocumentResult & WithContent(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_SSM_API
Definition: SSM_EXPORTS.h:37
JSON (JavaScript Object Notation).