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/appsync/AppSync_EXPORTS.h> 8 #include <aws/appsync/AppSyncRequest.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <utility> 11 12 namespace Aws 13 { 14 namespace AppSync 15 { 16 namespace Model 17 { 18 19 /** 20 */ 21 class AWS_APPSYNC_API DeleteTypeRequest : public AppSyncRequest 22 { 23 public: 24 DeleteTypeRequest(); 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 "DeleteType"; } 31 32 Aws::String SerializePayload() const override; 33 34 35 /** 36 * <p>The API ID.</p> 37 */ GetApiId()38 inline const Aws::String& GetApiId() const{ return m_apiId; } 39 40 /** 41 * <p>The API ID.</p> 42 */ ApiIdHasBeenSet()43 inline bool ApiIdHasBeenSet() const { return m_apiIdHasBeenSet; } 44 45 /** 46 * <p>The API ID.</p> 47 */ SetApiId(const Aws::String & value)48 inline void SetApiId(const Aws::String& value) { m_apiIdHasBeenSet = true; m_apiId = value; } 49 50 /** 51 * <p>The API ID.</p> 52 */ SetApiId(Aws::String && value)53 inline void SetApiId(Aws::String&& value) { m_apiIdHasBeenSet = true; m_apiId = std::move(value); } 54 55 /** 56 * <p>The API ID.</p> 57 */ SetApiId(const char * value)58 inline void SetApiId(const char* value) { m_apiIdHasBeenSet = true; m_apiId.assign(value); } 59 60 /** 61 * <p>The API ID.</p> 62 */ WithApiId(const Aws::String & value)63 inline DeleteTypeRequest& WithApiId(const Aws::String& value) { SetApiId(value); return *this;} 64 65 /** 66 * <p>The API ID.</p> 67 */ WithApiId(Aws::String && value)68 inline DeleteTypeRequest& WithApiId(Aws::String&& value) { SetApiId(std::move(value)); return *this;} 69 70 /** 71 * <p>The API ID.</p> 72 */ WithApiId(const char * value)73 inline DeleteTypeRequest& WithApiId(const char* value) { SetApiId(value); return *this;} 74 75 76 /** 77 * <p>The type name.</p> 78 */ GetTypeName()79 inline const Aws::String& GetTypeName() const{ return m_typeName; } 80 81 /** 82 * <p>The type name.</p> 83 */ TypeNameHasBeenSet()84 inline bool TypeNameHasBeenSet() const { return m_typeNameHasBeenSet; } 85 86 /** 87 * <p>The type name.</p> 88 */ SetTypeName(const Aws::String & value)89 inline void SetTypeName(const Aws::String& value) { m_typeNameHasBeenSet = true; m_typeName = value; } 90 91 /** 92 * <p>The type name.</p> 93 */ SetTypeName(Aws::String && value)94 inline void SetTypeName(Aws::String&& value) { m_typeNameHasBeenSet = true; m_typeName = std::move(value); } 95 96 /** 97 * <p>The type name.</p> 98 */ SetTypeName(const char * value)99 inline void SetTypeName(const char* value) { m_typeNameHasBeenSet = true; m_typeName.assign(value); } 100 101 /** 102 * <p>The type name.</p> 103 */ WithTypeName(const Aws::String & value)104 inline DeleteTypeRequest& WithTypeName(const Aws::String& value) { SetTypeName(value); return *this;} 105 106 /** 107 * <p>The type name.</p> 108 */ WithTypeName(Aws::String && value)109 inline DeleteTypeRequest& WithTypeName(Aws::String&& value) { SetTypeName(std::move(value)); return *this;} 110 111 /** 112 * <p>The type name.</p> 113 */ WithTypeName(const char * value)114 inline DeleteTypeRequest& WithTypeName(const char* value) { SetTypeName(value); return *this;} 115 116 private: 117 118 Aws::String m_apiId; 119 bool m_apiIdHasBeenSet; 120 121 Aws::String m_typeName; 122 bool m_typeNameHasBeenSet; 123 }; 124 125 } // namespace Model 126 } // namespace AppSync 127 } // namespace Aws 128