AWS SDK for C++  0.14.3
AWS SDK for C++
DomainInfo.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
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Json
24 {
25  class JsonValue;
26 } // namespace Json
27 } // namespace Utils
28 namespace ElasticsearchService
29 {
30 namespace Model
31 {
32 
34  {
35  public:
36  DomainInfo();
37  DomainInfo(const Aws::Utils::Json::JsonValue& jsonValue);
38  DomainInfo& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
39  Aws::Utils::Json::JsonValue Jsonize() const;
40 
44  inline const Aws::String& GetDomainName() const{ return m_domainName; }
45 
49  inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
50 
54  inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
55 
59  inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); }
60 
64  inline DomainInfo& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
65 
69  inline DomainInfo& WithDomainName(Aws::String&& value) { SetDomainName(value); return *this;}
70 
74  inline DomainInfo& WithDomainName(const char* value) { SetDomainName(value); return *this;}
75 
76  private:
77  Aws::String m_domainName;
78  bool m_domainNameHasBeenSet;
79  };
80 
81 } // namespace Model
82 } // namespace ElasticsearchService
83 } // namespace Aws
DomainInfo & WithDomainName(Aws::String &&value)
Definition: DomainInfo.h:69
const Aws::String & GetDomainName() const
Definition: DomainInfo.h:44
void SetDomainName(Aws::String &&value)
Definition: DomainInfo.h:54
#define AWS_ELASTICSEARCHSERVICE_API
void SetDomainName(const Aws::String &value)
Definition: DomainInfo.h:49
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DomainInfo & WithDomainName(const char *value)
Definition: DomainInfo.h:74
DomainInfo & WithDomainName(const Aws::String &value)
Definition: DomainInfo.h:64
JSON (JavaScript Object Notation).