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/mgn/Mgn_EXPORTS.h> 8 #include <aws/mgn/MgnRequest.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <utility> 11 12 namespace Aws 13 { 14 namespace mgn 15 { 16 namespace Model 17 { 18 19 /** 20 */ 21 class AWS_MGN_API MarkAsArchivedRequest : public MgnRequest 22 { 23 public: 24 MarkAsArchivedRequest(); 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 "MarkAsArchived"; } 31 32 Aws::String SerializePayload() const override; 33 34 35 /** 36 * <p>Mark as archived by Source Server ID.</p> 37 */ GetSourceServerID()38 inline const Aws::String& GetSourceServerID() const{ return m_sourceServerID; } 39 40 /** 41 * <p>Mark as archived by Source Server ID.</p> 42 */ SourceServerIDHasBeenSet()43 inline bool SourceServerIDHasBeenSet() const { return m_sourceServerIDHasBeenSet; } 44 45 /** 46 * <p>Mark as archived by Source Server ID.</p> 47 */ SetSourceServerID(const Aws::String & value)48 inline void SetSourceServerID(const Aws::String& value) { m_sourceServerIDHasBeenSet = true; m_sourceServerID = value; } 49 50 /** 51 * <p>Mark as archived by Source Server ID.</p> 52 */ SetSourceServerID(Aws::String && value)53 inline void SetSourceServerID(Aws::String&& value) { m_sourceServerIDHasBeenSet = true; m_sourceServerID = std::move(value); } 54 55 /** 56 * <p>Mark as archived by Source Server ID.</p> 57 */ SetSourceServerID(const char * value)58 inline void SetSourceServerID(const char* value) { m_sourceServerIDHasBeenSet = true; m_sourceServerID.assign(value); } 59 60 /** 61 * <p>Mark as archived by Source Server ID.</p> 62 */ WithSourceServerID(const Aws::String & value)63 inline MarkAsArchivedRequest& WithSourceServerID(const Aws::String& value) { SetSourceServerID(value); return *this;} 64 65 /** 66 * <p>Mark as archived by Source Server ID.</p> 67 */ WithSourceServerID(Aws::String && value)68 inline MarkAsArchivedRequest& WithSourceServerID(Aws::String&& value) { SetSourceServerID(std::move(value)); return *this;} 69 70 /** 71 * <p>Mark as archived by Source Server ID.</p> 72 */ WithSourceServerID(const char * value)73 inline MarkAsArchivedRequest& WithSourceServerID(const char* value) { SetSourceServerID(value); return *this;} 74 75 private: 76 77 Aws::String m_sourceServerID; 78 bool m_sourceServerIDHasBeenSet; 79 }; 80 81 } // namespace Model 82 } // namespace mgn 83 } // namespace Aws 84