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/quicksight/QuickSight_EXPORTS.h> 8 #include <aws/quicksight/model/NamespaceInfoV2.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <utility> 11 12 namespace Aws 13 { 14 template<typename RESULT_TYPE> 15 class AmazonWebServiceResult; 16 17 namespace Utils 18 { 19 namespace Json 20 { 21 class JsonValue; 22 } // namespace Json 23 } // namespace Utils 24 namespace QuickSight 25 { 26 namespace Model 27 { 28 class AWS_QUICKSIGHT_API DescribeNamespaceResult 29 { 30 public: 31 DescribeNamespaceResult(); 32 DescribeNamespaceResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 33 DescribeNamespaceResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 34 35 36 /** 37 * <p>The information about the namespace that you're describing. The response 38 * includes the namespace ARN, name, Amazon Web Services Region, creation status, 39 * and identity store. <code>DescribeNamespace</code> also works for namespaces 40 * that are in the process of being created. For incomplete namespaces, this API 41 * operation lists the namespace error types and messages associated with the 42 * creation process.</p> 43 */ GetNamespace()44 inline const NamespaceInfoV2& GetNamespace() const{ return m_namespace; } 45 46 /** 47 * <p>The information about the namespace that you're describing. The response 48 * includes the namespace ARN, name, Amazon Web Services Region, creation status, 49 * and identity store. <code>DescribeNamespace</code> also works for namespaces 50 * that are in the process of being created. For incomplete namespaces, this API 51 * operation lists the namespace error types and messages associated with the 52 * creation process.</p> 53 */ SetNamespace(const NamespaceInfoV2 & value)54 inline void SetNamespace(const NamespaceInfoV2& value) { m_namespace = value; } 55 56 /** 57 * <p>The information about the namespace that you're describing. The response 58 * includes the namespace ARN, name, Amazon Web Services Region, creation status, 59 * and identity store. <code>DescribeNamespace</code> also works for namespaces 60 * that are in the process of being created. For incomplete namespaces, this API 61 * operation lists the namespace error types and messages associated with the 62 * creation process.</p> 63 */ SetNamespace(NamespaceInfoV2 && value)64 inline void SetNamespace(NamespaceInfoV2&& value) { m_namespace = std::move(value); } 65 66 /** 67 * <p>The information about the namespace that you're describing. The response 68 * includes the namespace ARN, name, Amazon Web Services Region, creation status, 69 * and identity store. <code>DescribeNamespace</code> also works for namespaces 70 * that are in the process of being created. For incomplete namespaces, this API 71 * operation lists the namespace error types and messages associated with the 72 * creation process.</p> 73 */ WithNamespace(const NamespaceInfoV2 & value)74 inline DescribeNamespaceResult& WithNamespace(const NamespaceInfoV2& value) { SetNamespace(value); return *this;} 75 76 /** 77 * <p>The information about the namespace that you're describing. The response 78 * includes the namespace ARN, name, Amazon Web Services Region, creation status, 79 * and identity store. <code>DescribeNamespace</code> also works for namespaces 80 * that are in the process of being created. For incomplete namespaces, this API 81 * operation lists the namespace error types and messages associated with the 82 * creation process.</p> 83 */ WithNamespace(NamespaceInfoV2 && value)84 inline DescribeNamespaceResult& WithNamespace(NamespaceInfoV2&& value) { SetNamespace(std::move(value)); return *this;} 85 86 87 /** 88 * <p>The Amazon Web Services request ID for this operation.</p> 89 */ GetRequestId()90 inline const Aws::String& GetRequestId() const{ return m_requestId; } 91 92 /** 93 * <p>The Amazon Web Services request ID for this operation.</p> 94 */ SetRequestId(const Aws::String & value)95 inline void SetRequestId(const Aws::String& value) { m_requestId = value; } 96 97 /** 98 * <p>The Amazon Web Services request ID for this operation.</p> 99 */ SetRequestId(Aws::String && value)100 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } 101 102 /** 103 * <p>The Amazon Web Services request ID for this operation.</p> 104 */ SetRequestId(const char * value)105 inline void SetRequestId(const char* value) { m_requestId.assign(value); } 106 107 /** 108 * <p>The Amazon Web Services request ID for this operation.</p> 109 */ WithRequestId(const Aws::String & value)110 inline DescribeNamespaceResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} 111 112 /** 113 * <p>The Amazon Web Services request ID for this operation.</p> 114 */ WithRequestId(Aws::String && value)115 inline DescribeNamespaceResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} 116 117 /** 118 * <p>The Amazon Web Services request ID for this operation.</p> 119 */ WithRequestId(const char * value)120 inline DescribeNamespaceResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} 121 122 123 /** 124 * <p>The HTTP status of the request.</p> 125 */ GetStatus()126 inline int GetStatus() const{ return m_status; } 127 128 /** 129 * <p>The HTTP status of the request.</p> 130 */ SetStatus(int value)131 inline void SetStatus(int value) { m_status = value; } 132 133 /** 134 * <p>The HTTP status of the request.</p> 135 */ WithStatus(int value)136 inline DescribeNamespaceResult& WithStatus(int value) { SetStatus(value); return *this;} 137 138 private: 139 140 NamespaceInfoV2 m_namespace; 141 142 Aws::String m_requestId; 143 144 int m_status; 145 }; 146 147 } // namespace Model 148 } // namespace QuickSight 149 } // namespace Aws 150