1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #pragma once
7 #include <aws/opsworks/OpsWorks_EXPORTS.h>
8 #include <aws/core/utils/memory/stl/AWSString.h>
9 #include <utility>
10 
11 namespace Aws
12 {
13 template<typename RESULT_TYPE>
14 class AmazonWebServiceResult;
15 
16 namespace Utils
17 {
18 namespace Json
19 {
20   class JsonValue;
21 } // namespace Json
22 } // namespace Utils
23 namespace OpsWorks
24 {
25 namespace Model
26 {
27   /**
28    * <p>Contains the response to a <code>GetHostnameSuggestion</code>
29    * request.</p><p><h3>See Also:</h3>   <a
30    * href="http://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/GetHostnameSuggestionResult">AWS
31    * API Reference</a></p>
32    */
33   class AWS_OPSWORKS_API GetHostnameSuggestionResult
34   {
35   public:
36     GetHostnameSuggestionResult();
37     GetHostnameSuggestionResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
38     GetHostnameSuggestionResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
39 
40 
41     /**
42      * <p>The layer ID.</p>
43      */
GetLayerId()44     inline const Aws::String& GetLayerId() const{ return m_layerId; }
45 
46     /**
47      * <p>The layer ID.</p>
48      */
SetLayerId(const Aws::String & value)49     inline void SetLayerId(const Aws::String& value) { m_layerId = value; }
50 
51     /**
52      * <p>The layer ID.</p>
53      */
SetLayerId(Aws::String && value)54     inline void SetLayerId(Aws::String&& value) { m_layerId = std::move(value); }
55 
56     /**
57      * <p>The layer ID.</p>
58      */
SetLayerId(const char * value)59     inline void SetLayerId(const char* value) { m_layerId.assign(value); }
60 
61     /**
62      * <p>The layer ID.</p>
63      */
WithLayerId(const Aws::String & value)64     inline GetHostnameSuggestionResult& WithLayerId(const Aws::String& value) { SetLayerId(value); return *this;}
65 
66     /**
67      * <p>The layer ID.</p>
68      */
WithLayerId(Aws::String && value)69     inline GetHostnameSuggestionResult& WithLayerId(Aws::String&& value) { SetLayerId(std::move(value)); return *this;}
70 
71     /**
72      * <p>The layer ID.</p>
73      */
WithLayerId(const char * value)74     inline GetHostnameSuggestionResult& WithLayerId(const char* value) { SetLayerId(value); return *this;}
75 
76 
77     /**
78      * <p>The generated host name.</p>
79      */
GetHostname()80     inline const Aws::String& GetHostname() const{ return m_hostname; }
81 
82     /**
83      * <p>The generated host name.</p>
84      */
SetHostname(const Aws::String & value)85     inline void SetHostname(const Aws::String& value) { m_hostname = value; }
86 
87     /**
88      * <p>The generated host name.</p>
89      */
SetHostname(Aws::String && value)90     inline void SetHostname(Aws::String&& value) { m_hostname = std::move(value); }
91 
92     /**
93      * <p>The generated host name.</p>
94      */
SetHostname(const char * value)95     inline void SetHostname(const char* value) { m_hostname.assign(value); }
96 
97     /**
98      * <p>The generated host name.</p>
99      */
WithHostname(const Aws::String & value)100     inline GetHostnameSuggestionResult& WithHostname(const Aws::String& value) { SetHostname(value); return *this;}
101 
102     /**
103      * <p>The generated host name.</p>
104      */
WithHostname(Aws::String && value)105     inline GetHostnameSuggestionResult& WithHostname(Aws::String&& value) { SetHostname(std::move(value)); return *this;}
106 
107     /**
108      * <p>The generated host name.</p>
109      */
WithHostname(const char * value)110     inline GetHostnameSuggestionResult& WithHostname(const char* value) { SetHostname(value); return *this;}
111 
112   private:
113 
114     Aws::String m_layerId;
115 
116     Aws::String m_hostname;
117   };
118 
119 } // namespace Model
120 } // namespace OpsWorks
121 } // namespace Aws
122