/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace ECRPublic { namespace Model { /** */ class UploadLayerPartRequest : public ECRPublicRequest { public: AWS_ECRPUBLIC_API UploadLayerPartRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UploadLayerPart"; } AWS_ECRPUBLIC_API Aws::String SerializePayload() const override; AWS_ECRPUBLIC_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The Amazon Web Services account ID, or registry alias, that's associated with * the registry that you're uploading layer parts to. If you do not specify a * registry, the default public registry is assumed.

*/ inline const Aws::String& GetRegistryId() const{ return m_registryId; } /** *

The Amazon Web Services account ID, or registry alias, that's associated with * the registry that you're uploading layer parts to. If you do not specify a * registry, the default public registry is assumed.

*/ inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; } /** *

The Amazon Web Services account ID, or registry alias, that's associated with * the registry that you're uploading layer parts to. If you do not specify a * registry, the default public registry is assumed.

*/ inline void SetRegistryId(const Aws::String& value) { m_registryIdHasBeenSet = true; m_registryId = value; } /** *

The Amazon Web Services account ID, or registry alias, that's associated with * the registry that you're uploading layer parts to. If you do not specify a * registry, the default public registry is assumed.

*/ inline void SetRegistryId(Aws::String&& value) { m_registryIdHasBeenSet = true; m_registryId = std::move(value); } /** *

The Amazon Web Services account ID, or registry alias, that's associated with * the registry that you're uploading layer parts to. If you do not specify a * registry, the default public registry is assumed.

*/ inline void SetRegistryId(const char* value) { m_registryIdHasBeenSet = true; m_registryId.assign(value); } /** *

The Amazon Web Services account ID, or registry alias, that's associated with * the registry that you're uploading layer parts to. If you do not specify a * registry, the default public registry is assumed.

*/ inline UploadLayerPartRequest& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;} /** *

The Amazon Web Services account ID, or registry alias, that's associated with * the registry that you're uploading layer parts to. If you do not specify a * registry, the default public registry is assumed.

*/ inline UploadLayerPartRequest& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;} /** *

The Amazon Web Services account ID, or registry alias, that's associated with * the registry that you're uploading layer parts to. If you do not specify a * registry, the default public registry is assumed.

*/ inline UploadLayerPartRequest& WithRegistryId(const char* value) { SetRegistryId(value); return *this;} /** *

The name of the repository that you're uploading layer parts to.

*/ inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; } /** *

The name of the repository that you're uploading layer parts to.

*/ inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; } /** *

The name of the repository that you're uploading layer parts to.

*/ inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; } /** *

The name of the repository that you're uploading layer parts to.

*/ inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); } /** *

The name of the repository that you're uploading layer parts to.

*/ inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); } /** *

The name of the repository that you're uploading layer parts to.

*/ inline UploadLayerPartRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;} /** *

The name of the repository that you're uploading layer parts to.

*/ inline UploadLayerPartRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;} /** *

The name of the repository that you're uploading layer parts to.

*/ inline UploadLayerPartRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;} /** *

The upload ID from a previous InitiateLayerUpload operation to * associate with the layer part upload.

*/ inline const Aws::String& GetUploadId() const{ return m_uploadId; } /** *

The upload ID from a previous InitiateLayerUpload operation to * associate with the layer part upload.

*/ inline bool UploadIdHasBeenSet() const { return m_uploadIdHasBeenSet; } /** *

The upload ID from a previous InitiateLayerUpload operation to * associate with the layer part upload.

*/ inline void SetUploadId(const Aws::String& value) { m_uploadIdHasBeenSet = true; m_uploadId = value; } /** *

The upload ID from a previous InitiateLayerUpload operation to * associate with the layer part upload.

*/ inline void SetUploadId(Aws::String&& value) { m_uploadIdHasBeenSet = true; m_uploadId = std::move(value); } /** *

The upload ID from a previous InitiateLayerUpload operation to * associate with the layer part upload.

*/ inline void SetUploadId(const char* value) { m_uploadIdHasBeenSet = true; m_uploadId.assign(value); } /** *

The upload ID from a previous InitiateLayerUpload operation to * associate with the layer part upload.

*/ inline UploadLayerPartRequest& WithUploadId(const Aws::String& value) { SetUploadId(value); return *this;} /** *

The upload ID from a previous InitiateLayerUpload operation to * associate with the layer part upload.

*/ inline UploadLayerPartRequest& WithUploadId(Aws::String&& value) { SetUploadId(std::move(value)); return *this;} /** *

The upload ID from a previous InitiateLayerUpload operation to * associate with the layer part upload.

*/ inline UploadLayerPartRequest& WithUploadId(const char* value) { SetUploadId(value); return *this;} /** *

The position of the first byte of the layer part witin the overall image * layer.

*/ inline long long GetPartFirstByte() const{ return m_partFirstByte; } /** *

The position of the first byte of the layer part witin the overall image * layer.

*/ inline bool PartFirstByteHasBeenSet() const { return m_partFirstByteHasBeenSet; } /** *

The position of the first byte of the layer part witin the overall image * layer.

*/ inline void SetPartFirstByte(long long value) { m_partFirstByteHasBeenSet = true; m_partFirstByte = value; } /** *

The position of the first byte of the layer part witin the overall image * layer.

*/ inline UploadLayerPartRequest& WithPartFirstByte(long long value) { SetPartFirstByte(value); return *this;} /** *

The position of the last byte of the layer part within the overall image * layer.

*/ inline long long GetPartLastByte() const{ return m_partLastByte; } /** *

The position of the last byte of the layer part within the overall image * layer.

*/ inline bool PartLastByteHasBeenSet() const { return m_partLastByteHasBeenSet; } /** *

The position of the last byte of the layer part within the overall image * layer.

*/ inline void SetPartLastByte(long long value) { m_partLastByteHasBeenSet = true; m_partLastByte = value; } /** *

The position of the last byte of the layer part within the overall image * layer.

*/ inline UploadLayerPartRequest& WithPartLastByte(long long value) { SetPartLastByte(value); return *this;} /** *

The base64-encoded layer part payload.

*/ inline const Aws::Utils::ByteBuffer& GetLayerPartBlob() const{ return m_layerPartBlob; } /** *

The base64-encoded layer part payload.

*/ inline bool LayerPartBlobHasBeenSet() const { return m_layerPartBlobHasBeenSet; } /** *

The base64-encoded layer part payload.

*/ inline void SetLayerPartBlob(const Aws::Utils::ByteBuffer& value) { m_layerPartBlobHasBeenSet = true; m_layerPartBlob = value; } /** *

The base64-encoded layer part payload.

*/ inline void SetLayerPartBlob(Aws::Utils::ByteBuffer&& value) { m_layerPartBlobHasBeenSet = true; m_layerPartBlob = std::move(value); } /** *

The base64-encoded layer part payload.

*/ inline UploadLayerPartRequest& WithLayerPartBlob(const Aws::Utils::ByteBuffer& value) { SetLayerPartBlob(value); return *this;} /** *

The base64-encoded layer part payload.

*/ inline UploadLayerPartRequest& WithLayerPartBlob(Aws::Utils::ByteBuffer&& value) { SetLayerPartBlob(std::move(value)); return *this;} private: Aws::String m_registryId; bool m_registryIdHasBeenSet = false; Aws::String m_repositoryName; bool m_repositoryNameHasBeenSet = false; Aws::String m_uploadId; bool m_uploadIdHasBeenSet = false; long long m_partFirstByte; bool m_partFirstByteHasBeenSet = false; long long m_partLastByte; bool m_partLastByteHasBeenSet = false; Aws::Utils::ByteBuffer m_layerPartBlob; bool m_layerPartBlobHasBeenSet = false; }; } // namespace Model } // namespace ECRPublic } // namespace Aws