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/core/utils/memory/stl/AWSString.h> 9 #include <aws/quicksight/model/ResourceStatus.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 UpdateDataSourceResult 29 { 30 public: 31 UpdateDataSourceResult(); 32 UpdateDataSourceResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 33 UpdateDataSourceResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 34 35 36 /** 37 * <p>The Amazon Resource Name (ARN) of the data source.</p> 38 */ GetArn()39 inline const Aws::String& GetArn() const{ return m_arn; } 40 41 /** 42 * <p>The Amazon Resource Name (ARN) of the data source.</p> 43 */ SetArn(const Aws::String & value)44 inline void SetArn(const Aws::String& value) { m_arn = value; } 45 46 /** 47 * <p>The Amazon Resource Name (ARN) of the data source.</p> 48 */ SetArn(Aws::String && value)49 inline void SetArn(Aws::String&& value) { m_arn = std::move(value); } 50 51 /** 52 * <p>The Amazon Resource Name (ARN) of the data source.</p> 53 */ SetArn(const char * value)54 inline void SetArn(const char* value) { m_arn.assign(value); } 55 56 /** 57 * <p>The Amazon Resource Name (ARN) of the data source.</p> 58 */ WithArn(const Aws::String & value)59 inline UpdateDataSourceResult& WithArn(const Aws::String& value) { SetArn(value); return *this;} 60 61 /** 62 * <p>The Amazon Resource Name (ARN) of the data source.</p> 63 */ WithArn(Aws::String && value)64 inline UpdateDataSourceResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} 65 66 /** 67 * <p>The Amazon Resource Name (ARN) of the data source.</p> 68 */ WithArn(const char * value)69 inline UpdateDataSourceResult& WithArn(const char* value) { SetArn(value); return *this;} 70 71 72 /** 73 * <p>The ID of the data source. This ID is unique per Amazon Web Services Region 74 * for each Amazon Web Services account.</p> 75 */ GetDataSourceId()76 inline const Aws::String& GetDataSourceId() const{ return m_dataSourceId; } 77 78 /** 79 * <p>The ID of the data source. This ID is unique per Amazon Web Services Region 80 * for each Amazon Web Services account.</p> 81 */ SetDataSourceId(const Aws::String & value)82 inline void SetDataSourceId(const Aws::String& value) { m_dataSourceId = value; } 83 84 /** 85 * <p>The ID of the data source. This ID is unique per Amazon Web Services Region 86 * for each Amazon Web Services account.</p> 87 */ SetDataSourceId(Aws::String && value)88 inline void SetDataSourceId(Aws::String&& value) { m_dataSourceId = std::move(value); } 89 90 /** 91 * <p>The ID of the data source. This ID is unique per Amazon Web Services Region 92 * for each Amazon Web Services account.</p> 93 */ SetDataSourceId(const char * value)94 inline void SetDataSourceId(const char* value) { m_dataSourceId.assign(value); } 95 96 /** 97 * <p>The ID of the data source. This ID is unique per Amazon Web Services Region 98 * for each Amazon Web Services account.</p> 99 */ WithDataSourceId(const Aws::String & value)100 inline UpdateDataSourceResult& WithDataSourceId(const Aws::String& value) { SetDataSourceId(value); return *this;} 101 102 /** 103 * <p>The ID of the data source. This ID is unique per Amazon Web Services Region 104 * for each Amazon Web Services account.</p> 105 */ WithDataSourceId(Aws::String && value)106 inline UpdateDataSourceResult& WithDataSourceId(Aws::String&& value) { SetDataSourceId(std::move(value)); return *this;} 107 108 /** 109 * <p>The ID of the data source. This ID is unique per Amazon Web Services Region 110 * for each Amazon Web Services account.</p> 111 */ WithDataSourceId(const char * value)112 inline UpdateDataSourceResult& WithDataSourceId(const char* value) { SetDataSourceId(value); return *this;} 113 114 115 /** 116 * <p>The update status of the data source's last update.</p> 117 */ GetUpdateStatus()118 inline const ResourceStatus& GetUpdateStatus() const{ return m_updateStatus; } 119 120 /** 121 * <p>The update status of the data source's last update.</p> 122 */ SetUpdateStatus(const ResourceStatus & value)123 inline void SetUpdateStatus(const ResourceStatus& value) { m_updateStatus = value; } 124 125 /** 126 * <p>The update status of the data source's last update.</p> 127 */ SetUpdateStatus(ResourceStatus && value)128 inline void SetUpdateStatus(ResourceStatus&& value) { m_updateStatus = std::move(value); } 129 130 /** 131 * <p>The update status of the data source's last update.</p> 132 */ WithUpdateStatus(const ResourceStatus & value)133 inline UpdateDataSourceResult& WithUpdateStatus(const ResourceStatus& value) { SetUpdateStatus(value); return *this;} 134 135 /** 136 * <p>The update status of the data source's last update.</p> 137 */ WithUpdateStatus(ResourceStatus && value)138 inline UpdateDataSourceResult& WithUpdateStatus(ResourceStatus&& value) { SetUpdateStatus(std::move(value)); return *this;} 139 140 141 /** 142 * <p>The Amazon Web Services request ID for this operation.</p> 143 */ GetRequestId()144 inline const Aws::String& GetRequestId() const{ return m_requestId; } 145 146 /** 147 * <p>The Amazon Web Services request ID for this operation.</p> 148 */ SetRequestId(const Aws::String & value)149 inline void SetRequestId(const Aws::String& value) { m_requestId = value; } 150 151 /** 152 * <p>The Amazon Web Services request ID for this operation.</p> 153 */ SetRequestId(Aws::String && value)154 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } 155 156 /** 157 * <p>The Amazon Web Services request ID for this operation.</p> 158 */ SetRequestId(const char * value)159 inline void SetRequestId(const char* value) { m_requestId.assign(value); } 160 161 /** 162 * <p>The Amazon Web Services request ID for this operation.</p> 163 */ WithRequestId(const Aws::String & value)164 inline UpdateDataSourceResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} 165 166 /** 167 * <p>The Amazon Web Services request ID for this operation.</p> 168 */ WithRequestId(Aws::String && value)169 inline UpdateDataSourceResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} 170 171 /** 172 * <p>The Amazon Web Services request ID for this operation.</p> 173 */ WithRequestId(const char * value)174 inline UpdateDataSourceResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} 175 176 177 /** 178 * <p>The HTTP status of the request.</p> 179 */ GetStatus()180 inline int GetStatus() const{ return m_status; } 181 182 /** 183 * <p>The HTTP status of the request.</p> 184 */ SetStatus(int value)185 inline void SetStatus(int value) { m_status = value; } 186 187 /** 188 * <p>The HTTP status of the request.</p> 189 */ WithStatus(int value)190 inline UpdateDataSourceResult& WithStatus(int value) { SetStatus(value); return *this;} 191 192 private: 193 194 Aws::String m_arn; 195 196 Aws::String m_dataSourceId; 197 198 ResourceStatus m_updateStatus; 199 200 Aws::String m_requestId; 201 202 int m_status; 203 }; 204 205 } // namespace Model 206 } // namespace QuickSight 207 } // namespace Aws 208