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/glacier/Glacier_EXPORTS.h> 8 #include <aws/glacier/GlacierRequest.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <utility> 11 12 namespace Aws 13 { 14 namespace Glacier 15 { 16 namespace Model 17 { 18 19 /** 20 */ 21 class AWS_GLACIER_API ListProvisionedCapacityRequest : public GlacierRequest 22 { 23 public: 24 ListProvisionedCapacityRequest(); 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 "ListProvisionedCapacity"; } 31 32 Aws::String SerializePayload() const override; 33 34 35 /** 36 * <p>The AWS account ID of the account that owns the vault. You can either specify 37 * an AWS account ID or optionally a single '-' (hyphen), in which case Amazon S3 38 * Glacier uses the AWS account ID associated with the credentials used to sign the 39 * request. If you use an account ID, don't include any hyphens ('-') in the ID. 40 * </p> 41 */ GetAccountId()42 inline const Aws::String& GetAccountId() const{ return m_accountId; } 43 44 /** 45 * <p>The AWS account ID of the account that owns the vault. You can either specify 46 * an AWS account ID or optionally a single '-' (hyphen), in which case Amazon S3 47 * Glacier uses the AWS account ID associated with the credentials used to sign the 48 * request. If you use an account ID, don't include any hyphens ('-') in the ID. 49 * </p> 50 */ AccountIdHasBeenSet()51 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; } 52 53 /** 54 * <p>The AWS account ID of the account that owns the vault. You can either specify 55 * an AWS account ID or optionally a single '-' (hyphen), in which case Amazon S3 56 * Glacier uses the AWS account ID associated with the credentials used to sign the 57 * request. If you use an account ID, don't include any hyphens ('-') in the ID. 58 * </p> 59 */ SetAccountId(const Aws::String & value)60 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; } 61 62 /** 63 * <p>The AWS account ID of the account that owns the vault. You can either specify 64 * an AWS account ID or optionally a single '-' (hyphen), in which case Amazon S3 65 * Glacier uses the AWS account ID associated with the credentials used to sign the 66 * request. If you use an account ID, don't include any hyphens ('-') in the ID. 67 * </p> 68 */ SetAccountId(Aws::String && value)69 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); } 70 71 /** 72 * <p>The AWS account ID of the account that owns the vault. You can either specify 73 * an AWS account ID or optionally a single '-' (hyphen), in which case Amazon S3 74 * Glacier uses the AWS account ID associated with the credentials used to sign the 75 * request. If you use an account ID, don't include any hyphens ('-') in the ID. 76 * </p> 77 */ SetAccountId(const char * value)78 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); } 79 80 /** 81 * <p>The AWS account ID of the account that owns the vault. You can either specify 82 * an AWS account ID or optionally a single '-' (hyphen), in which case Amazon S3 83 * Glacier uses the AWS account ID associated with the credentials used to sign the 84 * request. If you use an account ID, don't include any hyphens ('-') in the ID. 85 * </p> 86 */ WithAccountId(const Aws::String & value)87 inline ListProvisionedCapacityRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;} 88 89 /** 90 * <p>The AWS account ID of the account that owns the vault. You can either specify 91 * an AWS account ID or optionally a single '-' (hyphen), in which case Amazon S3 92 * Glacier uses the AWS account ID associated with the credentials used to sign the 93 * request. If you use an account ID, don't include any hyphens ('-') in the ID. 94 * </p> 95 */ WithAccountId(Aws::String && value)96 inline ListProvisionedCapacityRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;} 97 98 /** 99 * <p>The AWS account ID of the account that owns the vault. You can either specify 100 * an AWS account ID or optionally a single '-' (hyphen), in which case Amazon S3 101 * Glacier uses the AWS account ID associated with the credentials used to sign the 102 * request. If you use an account ID, don't include any hyphens ('-') in the ID. 103 * </p> 104 */ WithAccountId(const char * value)105 inline ListProvisionedCapacityRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;} 106 107 private: 108 109 Aws::String m_accountId; 110 bool m_accountIdHasBeenSet; 111 }; 112 113 } // namespace Model 114 } // namespace Glacier 115 } // namespace Aws 116