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/AWSMigrationHub/MigrationHub_EXPORTS.h> 8 #include <aws/AWSMigrationHub/MigrationHubRequest.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <utility> 11 12 namespace Aws 13 { 14 namespace MigrationHub 15 { 16 namespace Model 17 { 18 19 /** 20 */ 21 class AWS_MIGRATIONHUB_API DisassociateDiscoveredResourceRequest : public MigrationHubRequest 22 { 23 public: 24 DisassociateDiscoveredResourceRequest(); 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 "DisassociateDiscoveredResource"; } 31 32 Aws::String SerializePayload() const override; 33 34 Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; 35 36 37 /** 38 * <p>The name of the ProgressUpdateStream.</p> 39 */ GetProgressUpdateStream()40 inline const Aws::String& GetProgressUpdateStream() const{ return m_progressUpdateStream; } 41 42 /** 43 * <p>The name of the ProgressUpdateStream.</p> 44 */ ProgressUpdateStreamHasBeenSet()45 inline bool ProgressUpdateStreamHasBeenSet() const { return m_progressUpdateStreamHasBeenSet; } 46 47 /** 48 * <p>The name of the ProgressUpdateStream.</p> 49 */ SetProgressUpdateStream(const Aws::String & value)50 inline void SetProgressUpdateStream(const Aws::String& value) { m_progressUpdateStreamHasBeenSet = true; m_progressUpdateStream = value; } 51 52 /** 53 * <p>The name of the ProgressUpdateStream.</p> 54 */ SetProgressUpdateStream(Aws::String && value)55 inline void SetProgressUpdateStream(Aws::String&& value) { m_progressUpdateStreamHasBeenSet = true; m_progressUpdateStream = std::move(value); } 56 57 /** 58 * <p>The name of the ProgressUpdateStream.</p> 59 */ SetProgressUpdateStream(const char * value)60 inline void SetProgressUpdateStream(const char* value) { m_progressUpdateStreamHasBeenSet = true; m_progressUpdateStream.assign(value); } 61 62 /** 63 * <p>The name of the ProgressUpdateStream.</p> 64 */ WithProgressUpdateStream(const Aws::String & value)65 inline DisassociateDiscoveredResourceRequest& WithProgressUpdateStream(const Aws::String& value) { SetProgressUpdateStream(value); return *this;} 66 67 /** 68 * <p>The name of the ProgressUpdateStream.</p> 69 */ WithProgressUpdateStream(Aws::String && value)70 inline DisassociateDiscoveredResourceRequest& WithProgressUpdateStream(Aws::String&& value) { SetProgressUpdateStream(std::move(value)); return *this;} 71 72 /** 73 * <p>The name of the ProgressUpdateStream.</p> 74 */ WithProgressUpdateStream(const char * value)75 inline DisassociateDiscoveredResourceRequest& WithProgressUpdateStream(const char* value) { SetProgressUpdateStream(value); return *this;} 76 77 78 /** 79 * <p>The identifier given to the MigrationTask. <i>Do not store personal data in 80 * this field.</i> </p> 81 */ GetMigrationTaskName()82 inline const Aws::String& GetMigrationTaskName() const{ return m_migrationTaskName; } 83 84 /** 85 * <p>The identifier given to the MigrationTask. <i>Do not store personal data in 86 * this field.</i> </p> 87 */ MigrationTaskNameHasBeenSet()88 inline bool MigrationTaskNameHasBeenSet() const { return m_migrationTaskNameHasBeenSet; } 89 90 /** 91 * <p>The identifier given to the MigrationTask. <i>Do not store personal data in 92 * this field.</i> </p> 93 */ SetMigrationTaskName(const Aws::String & value)94 inline void SetMigrationTaskName(const Aws::String& value) { m_migrationTaskNameHasBeenSet = true; m_migrationTaskName = value; } 95 96 /** 97 * <p>The identifier given to the MigrationTask. <i>Do not store personal data in 98 * this field.</i> </p> 99 */ SetMigrationTaskName(Aws::String && value)100 inline void SetMigrationTaskName(Aws::String&& value) { m_migrationTaskNameHasBeenSet = true; m_migrationTaskName = std::move(value); } 101 102 /** 103 * <p>The identifier given to the MigrationTask. <i>Do not store personal data in 104 * this field.</i> </p> 105 */ SetMigrationTaskName(const char * value)106 inline void SetMigrationTaskName(const char* value) { m_migrationTaskNameHasBeenSet = true; m_migrationTaskName.assign(value); } 107 108 /** 109 * <p>The identifier given to the MigrationTask. <i>Do not store personal data in 110 * this field.</i> </p> 111 */ WithMigrationTaskName(const Aws::String & value)112 inline DisassociateDiscoveredResourceRequest& WithMigrationTaskName(const Aws::String& value) { SetMigrationTaskName(value); return *this;} 113 114 /** 115 * <p>The identifier given to the MigrationTask. <i>Do not store personal data in 116 * this field.</i> </p> 117 */ WithMigrationTaskName(Aws::String && value)118 inline DisassociateDiscoveredResourceRequest& WithMigrationTaskName(Aws::String&& value) { SetMigrationTaskName(std::move(value)); return *this;} 119 120 /** 121 * <p>The identifier given to the MigrationTask. <i>Do not store personal data in 122 * this field.</i> </p> 123 */ WithMigrationTaskName(const char * value)124 inline DisassociateDiscoveredResourceRequest& WithMigrationTaskName(const char* value) { SetMigrationTaskName(value); return *this;} 125 126 127 /** 128 * <p>ConfigurationId of the Application Discovery Service resource to be 129 * disassociated.</p> 130 */ GetConfigurationId()131 inline const Aws::String& GetConfigurationId() const{ return m_configurationId; } 132 133 /** 134 * <p>ConfigurationId of the Application Discovery Service resource to be 135 * disassociated.</p> 136 */ ConfigurationIdHasBeenSet()137 inline bool ConfigurationIdHasBeenSet() const { return m_configurationIdHasBeenSet; } 138 139 /** 140 * <p>ConfigurationId of the Application Discovery Service resource to be 141 * disassociated.</p> 142 */ SetConfigurationId(const Aws::String & value)143 inline void SetConfigurationId(const Aws::String& value) { m_configurationIdHasBeenSet = true; m_configurationId = value; } 144 145 /** 146 * <p>ConfigurationId of the Application Discovery Service resource to be 147 * disassociated.</p> 148 */ SetConfigurationId(Aws::String && value)149 inline void SetConfigurationId(Aws::String&& value) { m_configurationIdHasBeenSet = true; m_configurationId = std::move(value); } 150 151 /** 152 * <p>ConfigurationId of the Application Discovery Service resource to be 153 * disassociated.</p> 154 */ SetConfigurationId(const char * value)155 inline void SetConfigurationId(const char* value) { m_configurationIdHasBeenSet = true; m_configurationId.assign(value); } 156 157 /** 158 * <p>ConfigurationId of the Application Discovery Service resource to be 159 * disassociated.</p> 160 */ WithConfigurationId(const Aws::String & value)161 inline DisassociateDiscoveredResourceRequest& WithConfigurationId(const Aws::String& value) { SetConfigurationId(value); return *this;} 162 163 /** 164 * <p>ConfigurationId of the Application Discovery Service resource to be 165 * disassociated.</p> 166 */ WithConfigurationId(Aws::String && value)167 inline DisassociateDiscoveredResourceRequest& WithConfigurationId(Aws::String&& value) { SetConfigurationId(std::move(value)); return *this;} 168 169 /** 170 * <p>ConfigurationId of the Application Discovery Service resource to be 171 * disassociated.</p> 172 */ WithConfigurationId(const char * value)173 inline DisassociateDiscoveredResourceRequest& WithConfigurationId(const char* value) { SetConfigurationId(value); return *this;} 174 175 176 /** 177 * <p>Optional boolean flag to indicate whether any effect should take place. Used 178 * to test if the caller has permission to make the call.</p> 179 */ GetDryRun()180 inline bool GetDryRun() const{ return m_dryRun; } 181 182 /** 183 * <p>Optional boolean flag to indicate whether any effect should take place. Used 184 * to test if the caller has permission to make the call.</p> 185 */ DryRunHasBeenSet()186 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; } 187 188 /** 189 * <p>Optional boolean flag to indicate whether any effect should take place. Used 190 * to test if the caller has permission to make the call.</p> 191 */ SetDryRun(bool value)192 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; } 193 194 /** 195 * <p>Optional boolean flag to indicate whether any effect should take place. Used 196 * to test if the caller has permission to make the call.</p> 197 */ WithDryRun(bool value)198 inline DisassociateDiscoveredResourceRequest& WithDryRun(bool value) { SetDryRun(value); return *this;} 199 200 private: 201 202 Aws::String m_progressUpdateStream; 203 bool m_progressUpdateStreamHasBeenSet; 204 205 Aws::String m_migrationTaskName; 206 bool m_migrationTaskNameHasBeenSet; 207 208 Aws::String m_configurationId; 209 bool m_configurationIdHasBeenSet; 210 211 bool m_dryRun; 212 bool m_dryRunHasBeenSet; 213 }; 214 215 } // namespace Model 216 } // namespace MigrationHub 217 } // namespace Aws 218