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/machinelearning/MachineLearning_EXPORTS.h> 8 #include <aws/machinelearning/MachineLearningRequest.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <utility> 11 12 namespace Aws 13 { 14 namespace MachineLearning 15 { 16 namespace Model 17 { 18 19 /** 20 */ 21 class AWS_MACHINELEARNING_API GetDataSourceRequest : public MachineLearningRequest 22 { 23 public: 24 GetDataSourceRequest(); 25 26 // Service request name is the Operation name which will send this request out, 27 // each operation should has unique request name, so that we can get operation's name from this request. 28 // Note: this is not true for response, multiple operations may have the same response name, 29 // so we can not get operation's name from response. GetServiceRequestName()30 inline virtual const char* GetServiceRequestName() const override { return "GetDataSource"; } 31 32 Aws::String SerializePayload() const override; 33 34 Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; 35 36 37 /** 38 * <p>The ID assigned to the <code>DataSource</code> at creation.</p> 39 */ GetDataSourceId()40 inline const Aws::String& GetDataSourceId() const{ return m_dataSourceId; } 41 42 /** 43 * <p>The ID assigned to the <code>DataSource</code> at creation.</p> 44 */ DataSourceIdHasBeenSet()45 inline bool DataSourceIdHasBeenSet() const { return m_dataSourceIdHasBeenSet; } 46 47 /** 48 * <p>The ID assigned to the <code>DataSource</code> at creation.</p> 49 */ SetDataSourceId(const Aws::String & value)50 inline void SetDataSourceId(const Aws::String& value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId = value; } 51 52 /** 53 * <p>The ID assigned to the <code>DataSource</code> at creation.</p> 54 */ SetDataSourceId(Aws::String && value)55 inline void SetDataSourceId(Aws::String&& value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId = std::move(value); } 56 57 /** 58 * <p>The ID assigned to the <code>DataSource</code> at creation.</p> 59 */ SetDataSourceId(const char * value)60 inline void SetDataSourceId(const char* value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId.assign(value); } 61 62 /** 63 * <p>The ID assigned to the <code>DataSource</code> at creation.</p> 64 */ WithDataSourceId(const Aws::String & value)65 inline GetDataSourceRequest& WithDataSourceId(const Aws::String& value) { SetDataSourceId(value); return *this;} 66 67 /** 68 * <p>The ID assigned to the <code>DataSource</code> at creation.</p> 69 */ WithDataSourceId(Aws::String && value)70 inline GetDataSourceRequest& WithDataSourceId(Aws::String&& value) { SetDataSourceId(std::move(value)); return *this;} 71 72 /** 73 * <p>The ID assigned to the <code>DataSource</code> at creation.</p> 74 */ WithDataSourceId(const char * value)75 inline GetDataSourceRequest& WithDataSourceId(const char* value) { SetDataSourceId(value); return *this;} 76 77 78 /** 79 * <p>Specifies whether the <code>GetDataSource</code> operation should return 80 * <code>DataSourceSchema</code>.</p> <p>If true, <code>DataSourceSchema</code> is 81 * returned.</p> <p>If false, <code>DataSourceSchema</code> is not returned.</p> 82 */ GetVerbose()83 inline bool GetVerbose() const{ return m_verbose; } 84 85 /** 86 * <p>Specifies whether the <code>GetDataSource</code> operation should return 87 * <code>DataSourceSchema</code>.</p> <p>If true, <code>DataSourceSchema</code> is 88 * returned.</p> <p>If false, <code>DataSourceSchema</code> is not returned.</p> 89 */ VerboseHasBeenSet()90 inline bool VerboseHasBeenSet() const { return m_verboseHasBeenSet; } 91 92 /** 93 * <p>Specifies whether the <code>GetDataSource</code> operation should return 94 * <code>DataSourceSchema</code>.</p> <p>If true, <code>DataSourceSchema</code> is 95 * returned.</p> <p>If false, <code>DataSourceSchema</code> is not returned.</p> 96 */ SetVerbose(bool value)97 inline void SetVerbose(bool value) { m_verboseHasBeenSet = true; m_verbose = value; } 98 99 /** 100 * <p>Specifies whether the <code>GetDataSource</code> operation should return 101 * <code>DataSourceSchema</code>.</p> <p>If true, <code>DataSourceSchema</code> is 102 * returned.</p> <p>If false, <code>DataSourceSchema</code> is not returned.</p> 103 */ WithVerbose(bool value)104 inline GetDataSourceRequest& WithVerbose(bool value) { SetVerbose(value); return *this;} 105 106 private: 107 108 Aws::String m_dataSourceId; 109 bool m_dataSourceIdHasBeenSet; 110 111 bool m_verbose; 112 bool m_verboseHasBeenSet; 113 }; 114 115 } // namespace Model 116 } // namespace MachineLearning 117 } // namespace Aws 118