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/dataexchange/DataExchange_EXPORTS.h> 8 #include <aws/dataexchange/DataExchangeRequest.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <utility> 11 12 namespace Aws 13 { 14 namespace DataExchange 15 { 16 namespace Model 17 { 18 19 /** 20 */ 21 class AWS_DATAEXCHANGE_API GetRevisionRequest : public DataExchangeRequest 22 { 23 public: 24 GetRevisionRequest(); 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 "GetRevision"; } 31 32 Aws::String SerializePayload() const override; 33 34 35 /** 36 * <p>The unique identifier for a data set.</p> 37 */ GetDataSetId()38 inline const Aws::String& GetDataSetId() const{ return m_dataSetId; } 39 40 /** 41 * <p>The unique identifier for a data set.</p> 42 */ DataSetIdHasBeenSet()43 inline bool DataSetIdHasBeenSet() const { return m_dataSetIdHasBeenSet; } 44 45 /** 46 * <p>The unique identifier for a data set.</p> 47 */ SetDataSetId(const Aws::String & value)48 inline void SetDataSetId(const Aws::String& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = value; } 49 50 /** 51 * <p>The unique identifier for a data set.</p> 52 */ SetDataSetId(Aws::String && value)53 inline void SetDataSetId(Aws::String&& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = std::move(value); } 54 55 /** 56 * <p>The unique identifier for a data set.</p> 57 */ SetDataSetId(const char * value)58 inline void SetDataSetId(const char* value) { m_dataSetIdHasBeenSet = true; m_dataSetId.assign(value); } 59 60 /** 61 * <p>The unique identifier for a data set.</p> 62 */ WithDataSetId(const Aws::String & value)63 inline GetRevisionRequest& WithDataSetId(const Aws::String& value) { SetDataSetId(value); return *this;} 64 65 /** 66 * <p>The unique identifier for a data set.</p> 67 */ WithDataSetId(Aws::String && value)68 inline GetRevisionRequest& WithDataSetId(Aws::String&& value) { SetDataSetId(std::move(value)); return *this;} 69 70 /** 71 * <p>The unique identifier for a data set.</p> 72 */ WithDataSetId(const char * value)73 inline GetRevisionRequest& WithDataSetId(const char* value) { SetDataSetId(value); return *this;} 74 75 76 /** 77 * <p>The unique identifier for a revision.</p> 78 */ GetRevisionId()79 inline const Aws::String& GetRevisionId() const{ return m_revisionId; } 80 81 /** 82 * <p>The unique identifier for a revision.</p> 83 */ RevisionIdHasBeenSet()84 inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; } 85 86 /** 87 * <p>The unique identifier for a revision.</p> 88 */ SetRevisionId(const Aws::String & value)89 inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; } 90 91 /** 92 * <p>The unique identifier for a revision.</p> 93 */ SetRevisionId(Aws::String && value)94 inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); } 95 96 /** 97 * <p>The unique identifier for a revision.</p> 98 */ SetRevisionId(const char * value)99 inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); } 100 101 /** 102 * <p>The unique identifier for a revision.</p> 103 */ WithRevisionId(const Aws::String & value)104 inline GetRevisionRequest& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;} 105 106 /** 107 * <p>The unique identifier for a revision.</p> 108 */ WithRevisionId(Aws::String && value)109 inline GetRevisionRequest& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;} 110 111 /** 112 * <p>The unique identifier for a revision.</p> 113 */ WithRevisionId(const char * value)114 inline GetRevisionRequest& WithRevisionId(const char* value) { SetRevisionId(value); return *this;} 115 116 private: 117 118 Aws::String m_dataSetId; 119 bool m_dataSetIdHasBeenSet; 120 121 Aws::String m_revisionId; 122 bool m_revisionIdHasBeenSet; 123 }; 124 125 } // namespace Model 126 } // namespace DataExchange 127 } // namespace Aws 128