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/connectparticipant/ConnectParticipant_EXPORTS.h> 8 #include <aws/connectparticipant/ConnectParticipantRequest.h> 9 #include <aws/core/utils/memory/stl/AWSVector.h> 10 #include <aws/core/utils/memory/stl/AWSString.h> 11 #include <utility> 12 #include <aws/core/utils/UUID.h> 13 14 namespace Aws 15 { 16 namespace ConnectParticipant 17 { 18 namespace Model 19 { 20 21 /** 22 */ 23 class AWS_CONNECTPARTICIPANT_API CompleteAttachmentUploadRequest : public ConnectParticipantRequest 24 { 25 public: 26 CompleteAttachmentUploadRequest(); 27 28 // Service request name is the Operation name which will send this request out, 29 // each operation should has unique request name, so that we can get operation's name from this request. 30 // Note: this is not true for response, multiple operations may have the same response name, 31 // so we can not get operation's name from response. GetServiceRequestName()32 inline virtual const char* GetServiceRequestName() const override { return "CompleteAttachmentUpload"; } 33 34 Aws::String SerializePayload() const override; 35 36 Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; 37 38 39 /** 40 * <p>A list of unique identifiers for the attachments.</p> 41 */ GetAttachmentIds()42 inline const Aws::Vector<Aws::String>& GetAttachmentIds() const{ return m_attachmentIds; } 43 44 /** 45 * <p>A list of unique identifiers for the attachments.</p> 46 */ AttachmentIdsHasBeenSet()47 inline bool AttachmentIdsHasBeenSet() const { return m_attachmentIdsHasBeenSet; } 48 49 /** 50 * <p>A list of unique identifiers for the attachments.</p> 51 */ SetAttachmentIds(const Aws::Vector<Aws::String> & value)52 inline void SetAttachmentIds(const Aws::Vector<Aws::String>& value) { m_attachmentIdsHasBeenSet = true; m_attachmentIds = value; } 53 54 /** 55 * <p>A list of unique identifiers for the attachments.</p> 56 */ SetAttachmentIds(Aws::Vector<Aws::String> && value)57 inline void SetAttachmentIds(Aws::Vector<Aws::String>&& value) { m_attachmentIdsHasBeenSet = true; m_attachmentIds = std::move(value); } 58 59 /** 60 * <p>A list of unique identifiers for the attachments.</p> 61 */ WithAttachmentIds(const Aws::Vector<Aws::String> & value)62 inline CompleteAttachmentUploadRequest& WithAttachmentIds(const Aws::Vector<Aws::String>& value) { SetAttachmentIds(value); return *this;} 63 64 /** 65 * <p>A list of unique identifiers for the attachments.</p> 66 */ WithAttachmentIds(Aws::Vector<Aws::String> && value)67 inline CompleteAttachmentUploadRequest& WithAttachmentIds(Aws::Vector<Aws::String>&& value) { SetAttachmentIds(std::move(value)); return *this;} 68 69 /** 70 * <p>A list of unique identifiers for the attachments.</p> 71 */ AddAttachmentIds(const Aws::String & value)72 inline CompleteAttachmentUploadRequest& AddAttachmentIds(const Aws::String& value) { m_attachmentIdsHasBeenSet = true; m_attachmentIds.push_back(value); return *this; } 73 74 /** 75 * <p>A list of unique identifiers for the attachments.</p> 76 */ AddAttachmentIds(Aws::String && value)77 inline CompleteAttachmentUploadRequest& AddAttachmentIds(Aws::String&& value) { m_attachmentIdsHasBeenSet = true; m_attachmentIds.push_back(std::move(value)); return *this; } 78 79 /** 80 * <p>A list of unique identifiers for the attachments.</p> 81 */ AddAttachmentIds(const char * value)82 inline CompleteAttachmentUploadRequest& AddAttachmentIds(const char* value) { m_attachmentIdsHasBeenSet = true; m_attachmentIds.push_back(value); return *this; } 83 84 85 /** 86 * <p>A unique, case-sensitive identifier that you provide to ensure the 87 * idempotency of the request.</p> 88 */ GetClientToken()89 inline const Aws::String& GetClientToken() const{ return m_clientToken; } 90 91 /** 92 * <p>A unique, case-sensitive identifier that you provide to ensure the 93 * idempotency of the request.</p> 94 */ ClientTokenHasBeenSet()95 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } 96 97 /** 98 * <p>A unique, case-sensitive identifier that you provide to ensure the 99 * idempotency of the request.</p> 100 */ SetClientToken(const Aws::String & value)101 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } 102 103 /** 104 * <p>A unique, case-sensitive identifier that you provide to ensure the 105 * idempotency of the request.</p> 106 */ SetClientToken(Aws::String && value)107 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } 108 109 /** 110 * <p>A unique, case-sensitive identifier that you provide to ensure the 111 * idempotency of the request.</p> 112 */ SetClientToken(const char * value)113 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } 114 115 /** 116 * <p>A unique, case-sensitive identifier that you provide to ensure the 117 * idempotency of the request.</p> 118 */ WithClientToken(const Aws::String & value)119 inline CompleteAttachmentUploadRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} 120 121 /** 122 * <p>A unique, case-sensitive identifier that you provide to ensure the 123 * idempotency of the request.</p> 124 */ WithClientToken(Aws::String && value)125 inline CompleteAttachmentUploadRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} 126 127 /** 128 * <p>A unique, case-sensitive identifier that you provide to ensure the 129 * idempotency of the request.</p> 130 */ WithClientToken(const char * value)131 inline CompleteAttachmentUploadRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} 132 133 134 /** 135 * <p>The authentication token associated with the participant's connection.</p> 136 */ GetConnectionToken()137 inline const Aws::String& GetConnectionToken() const{ return m_connectionToken; } 138 139 /** 140 * <p>The authentication token associated with the participant's connection.</p> 141 */ ConnectionTokenHasBeenSet()142 inline bool ConnectionTokenHasBeenSet() const { return m_connectionTokenHasBeenSet; } 143 144 /** 145 * <p>The authentication token associated with the participant's connection.</p> 146 */ SetConnectionToken(const Aws::String & value)147 inline void SetConnectionToken(const Aws::String& value) { m_connectionTokenHasBeenSet = true; m_connectionToken = value; } 148 149 /** 150 * <p>The authentication token associated with the participant's connection.</p> 151 */ SetConnectionToken(Aws::String && value)152 inline void SetConnectionToken(Aws::String&& value) { m_connectionTokenHasBeenSet = true; m_connectionToken = std::move(value); } 153 154 /** 155 * <p>The authentication token associated with the participant's connection.</p> 156 */ SetConnectionToken(const char * value)157 inline void SetConnectionToken(const char* value) { m_connectionTokenHasBeenSet = true; m_connectionToken.assign(value); } 158 159 /** 160 * <p>The authentication token associated with the participant's connection.</p> 161 */ WithConnectionToken(const Aws::String & value)162 inline CompleteAttachmentUploadRequest& WithConnectionToken(const Aws::String& value) { SetConnectionToken(value); return *this;} 163 164 /** 165 * <p>The authentication token associated with the participant's connection.</p> 166 */ WithConnectionToken(Aws::String && value)167 inline CompleteAttachmentUploadRequest& WithConnectionToken(Aws::String&& value) { SetConnectionToken(std::move(value)); return *this;} 168 169 /** 170 * <p>The authentication token associated with the participant's connection.</p> 171 */ WithConnectionToken(const char * value)172 inline CompleteAttachmentUploadRequest& WithConnectionToken(const char* value) { SetConnectionToken(value); return *this;} 173 174 private: 175 176 Aws::Vector<Aws::String> m_attachmentIds; 177 bool m_attachmentIdsHasBeenSet; 178 179 Aws::String m_clientToken; 180 bool m_clientTokenHasBeenSet; 181 182 Aws::String m_connectionToken; 183 bool m_connectionTokenHasBeenSet; 184 }; 185 186 } // namespace Model 187 } // namespace ConnectParticipant 188 } // namespace Aws 189