AWS SDK for C++  0.14.3
AWS SDK for C++
DeleteArchiveRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
19 
20 namespace Aws
21 {
22 namespace Glacier
23 {
24 namespace Model
25 {
26 
31  {
32  public:
34  Aws::String SerializePayload() const override;
35 
43  inline const Aws::String& GetAccountId() const{ return m_accountId; }
44 
52  inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
53 
61  inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
62 
70  inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
71 
79  inline DeleteArchiveRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
80 
88  inline DeleteArchiveRequest& WithAccountId(Aws::String&& value) { SetAccountId(value); return *this;}
89 
97  inline DeleteArchiveRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
98 
102  inline const Aws::String& GetVaultName() const{ return m_vaultName; }
103 
107  inline void SetVaultName(const Aws::String& value) { m_vaultNameHasBeenSet = true; m_vaultName = value; }
108 
112  inline void SetVaultName(Aws::String&& value) { m_vaultNameHasBeenSet = true; m_vaultName = value; }
113 
117  inline void SetVaultName(const char* value) { m_vaultNameHasBeenSet = true; m_vaultName.assign(value); }
118 
122  inline DeleteArchiveRequest& WithVaultName(const Aws::String& value) { SetVaultName(value); return *this;}
123 
127  inline DeleteArchiveRequest& WithVaultName(Aws::String&& value) { SetVaultName(value); return *this;}
128 
132  inline DeleteArchiveRequest& WithVaultName(const char* value) { SetVaultName(value); return *this;}
133 
137  inline const Aws::String& GetArchiveId() const{ return m_archiveId; }
138 
142  inline void SetArchiveId(const Aws::String& value) { m_archiveIdHasBeenSet = true; m_archiveId = value; }
143 
147  inline void SetArchiveId(Aws::String&& value) { m_archiveIdHasBeenSet = true; m_archiveId = value; }
148 
152  inline void SetArchiveId(const char* value) { m_archiveIdHasBeenSet = true; m_archiveId.assign(value); }
153 
157  inline DeleteArchiveRequest& WithArchiveId(const Aws::String& value) { SetArchiveId(value); return *this;}
158 
162  inline DeleteArchiveRequest& WithArchiveId(Aws::String&& value) { SetArchiveId(value); return *this;}
163 
167  inline DeleteArchiveRequest& WithArchiveId(const char* value) { SetArchiveId(value); return *this;}
168 
169  private:
170  Aws::String m_accountId;
171  bool m_accountIdHasBeenSet;
172  Aws::String m_vaultName;
173  bool m_vaultNameHasBeenSet;
174  Aws::String m_archiveId;
175  bool m_archiveIdHasBeenSet;
176  };
177 
178 } // namespace Model
179 } // namespace Glacier
180 } // namespace Aws
void SetVaultName(const Aws::String &value)
DeleteArchiveRequest & WithVaultName(const char *value)
void SetArchiveId(const Aws::String &value)
DeleteArchiveRequest & WithArchiveId(const Aws::String &value)
void SetAccountId(const Aws::String &value)
DeleteArchiveRequest & WithVaultName(const Aws::String &value)
DeleteArchiveRequest & WithVaultName(Aws::String &&value)
DeleteArchiveRequest & WithArchiveId(const char *value)
#define AWS_GLACIER_API
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DeleteArchiveRequest & WithAccountId(const char *value)
DeleteArchiveRequest & WithAccountId(const Aws::String &value)
DeleteArchiveRequest & WithArchiveId(Aws::String &&value)
DeleteArchiveRequest & WithAccountId(Aws::String &&value)
JSON (JavaScript Object Notation).