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 <aws/appsync/model/TypeDefinitionFormat.h> 11 #include <utility> 12 13 namespace Aws 14 { 15 namespace Http 16 { 17 class URI; 18 } //namespace Http 19 namespace AppSync 20 { 21 namespace Model 22 { 23 24 /** 25 */ 26 class AWS_APPSYNC_API GetTypeRequest : public AppSyncRequest 27 { 28 public: 29 GetTypeRequest(); 30 31 // Service request name is the Operation name which will send this request out, 32 // each operation should has unique request name, so that we can get operation's name from this request. 33 // Note: this is not true for response, multiple operations may have the same response name, 34 // so we can not get operation's name from response. GetServiceRequestName()35 inline virtual const char* GetServiceRequestName() const override { return "GetType"; } 36 37 Aws::String SerializePayload() const override; 38 39 void AddQueryStringParameters(Aws::Http::URI& uri) const override; 40 41 42 /** 43 * <p>The API ID.</p> 44 */ GetApiId()45 inline const Aws::String& GetApiId() const{ return m_apiId; } 46 47 /** 48 * <p>The API ID.</p> 49 */ ApiIdHasBeenSet()50 inline bool ApiIdHasBeenSet() const { return m_apiIdHasBeenSet; } 51 52 /** 53 * <p>The API ID.</p> 54 */ SetApiId(const Aws::String & value)55 inline void SetApiId(const Aws::String& value) { m_apiIdHasBeenSet = true; m_apiId = value; } 56 57 /** 58 * <p>The API ID.</p> 59 */ SetApiId(Aws::String && value)60 inline void SetApiId(Aws::String&& value) { m_apiIdHasBeenSet = true; m_apiId = std::move(value); } 61 62 /** 63 * <p>The API ID.</p> 64 */ SetApiId(const char * value)65 inline void SetApiId(const char* value) { m_apiIdHasBeenSet = true; m_apiId.assign(value); } 66 67 /** 68 * <p>The API ID.</p> 69 */ WithApiId(const Aws::String & value)70 inline GetTypeRequest& WithApiId(const Aws::String& value) { SetApiId(value); return *this;} 71 72 /** 73 * <p>The API ID.</p> 74 */ WithApiId(Aws::String && value)75 inline GetTypeRequest& WithApiId(Aws::String&& value) { SetApiId(std::move(value)); return *this;} 76 77 /** 78 * <p>The API ID.</p> 79 */ WithApiId(const char * value)80 inline GetTypeRequest& WithApiId(const char* value) { SetApiId(value); return *this;} 81 82 83 /** 84 * <p>The type name.</p> 85 */ GetTypeName()86 inline const Aws::String& GetTypeName() const{ return m_typeName; } 87 88 /** 89 * <p>The type name.</p> 90 */ TypeNameHasBeenSet()91 inline bool TypeNameHasBeenSet() const { return m_typeNameHasBeenSet; } 92 93 /** 94 * <p>The type name.</p> 95 */ SetTypeName(const Aws::String & value)96 inline void SetTypeName(const Aws::String& value) { m_typeNameHasBeenSet = true; m_typeName = value; } 97 98 /** 99 * <p>The type name.</p> 100 */ SetTypeName(Aws::String && value)101 inline void SetTypeName(Aws::String&& value) { m_typeNameHasBeenSet = true; m_typeName = std::move(value); } 102 103 /** 104 * <p>The type name.</p> 105 */ SetTypeName(const char * value)106 inline void SetTypeName(const char* value) { m_typeNameHasBeenSet = true; m_typeName.assign(value); } 107 108 /** 109 * <p>The type name.</p> 110 */ WithTypeName(const Aws::String & value)111 inline GetTypeRequest& WithTypeName(const Aws::String& value) { SetTypeName(value); return *this;} 112 113 /** 114 * <p>The type name.</p> 115 */ WithTypeName(Aws::String && value)116 inline GetTypeRequest& WithTypeName(Aws::String&& value) { SetTypeName(std::move(value)); return *this;} 117 118 /** 119 * <p>The type name.</p> 120 */ WithTypeName(const char * value)121 inline GetTypeRequest& WithTypeName(const char* value) { SetTypeName(value); return *this;} 122 123 124 /** 125 * <p>The type format: SDL or JSON.</p> 126 */ GetFormat()127 inline const TypeDefinitionFormat& GetFormat() const{ return m_format; } 128 129 /** 130 * <p>The type format: SDL or JSON.</p> 131 */ FormatHasBeenSet()132 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; } 133 134 /** 135 * <p>The type format: SDL or JSON.</p> 136 */ SetFormat(const TypeDefinitionFormat & value)137 inline void SetFormat(const TypeDefinitionFormat& value) { m_formatHasBeenSet = true; m_format = value; } 138 139 /** 140 * <p>The type format: SDL or JSON.</p> 141 */ SetFormat(TypeDefinitionFormat && value)142 inline void SetFormat(TypeDefinitionFormat&& value) { m_formatHasBeenSet = true; m_format = std::move(value); } 143 144 /** 145 * <p>The type format: SDL or JSON.</p> 146 */ WithFormat(const TypeDefinitionFormat & value)147 inline GetTypeRequest& WithFormat(const TypeDefinitionFormat& value) { SetFormat(value); return *this;} 148 149 /** 150 * <p>The type format: SDL or JSON.</p> 151 */ WithFormat(TypeDefinitionFormat && value)152 inline GetTypeRequest& WithFormat(TypeDefinitionFormat&& value) { SetFormat(std::move(value)); return *this;} 153 154 private: 155 156 Aws::String m_apiId; 157 bool m_apiIdHasBeenSet; 158 159 Aws::String m_typeName; 160 bool m_typeNameHasBeenSet; 161 162 TypeDefinitionFormat m_format; 163 bool m_formatHasBeenSet; 164 }; 165 166 } // namespace Model 167 } // namespace AppSync 168 } // namespace Aws 169