Lesson 35 - Get Compute Auth Token Working
This commit is contained in:
@@ -0,0 +1,79 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p>This data type is used in the <a>ImageScanFinding</a> data
|
||||
* type.</p><p><h3>See Also:</h3> <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/Attribute">AWS API
|
||||
* Reference</a></p>
|
||||
*/
|
||||
class Attribute
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API Attribute();
|
||||
AWS_ECR_API Attribute(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_ECR_API Attribute& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The attribute key.</p>
|
||||
*/
|
||||
inline const Aws::String& GetKey() const{ return m_key; }
|
||||
inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
|
||||
inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
|
||||
inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
|
||||
inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
|
||||
inline Attribute& WithKey(const Aws::String& value) { SetKey(value); return *this;}
|
||||
inline Attribute& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
|
||||
inline Attribute& WithKey(const char* value) { SetKey(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The value assigned to the attribute key.</p>
|
||||
*/
|
||||
inline const Aws::String& GetValue() const{ return m_value; }
|
||||
inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
|
||||
inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
|
||||
inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
|
||||
inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
|
||||
inline Attribute& WithValue(const Aws::String& value) { SetValue(value); return *this;}
|
||||
inline Attribute& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
|
||||
inline Attribute& WithValue(const char* value) { SetValue(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_key;
|
||||
bool m_keyHasBeenSet = false;
|
||||
|
||||
Aws::String m_value;
|
||||
bool m_valueHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,102 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/core/utils/DateTime.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p>An object representing authorization data for an Amazon ECR
|
||||
* registry.</p><p><h3>See Also:</h3> <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/AuthorizationData">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class AuthorizationData
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API AuthorizationData();
|
||||
AWS_ECR_API AuthorizationData(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_ECR_API AuthorizationData& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>A base64-encoded string that contains authorization data for the specified
|
||||
* Amazon ECR registry. When the string is decoded, it is presented in the format
|
||||
* <code>user:password</code> for private registry authentication using
|
||||
* <code>docker login</code>.</p>
|
||||
*/
|
||||
inline const Aws::String& GetAuthorizationToken() const{ return m_authorizationToken; }
|
||||
inline bool AuthorizationTokenHasBeenSet() const { return m_authorizationTokenHasBeenSet; }
|
||||
inline void SetAuthorizationToken(const Aws::String& value) { m_authorizationTokenHasBeenSet = true; m_authorizationToken = value; }
|
||||
inline void SetAuthorizationToken(Aws::String&& value) { m_authorizationTokenHasBeenSet = true; m_authorizationToken = std::move(value); }
|
||||
inline void SetAuthorizationToken(const char* value) { m_authorizationTokenHasBeenSet = true; m_authorizationToken.assign(value); }
|
||||
inline AuthorizationData& WithAuthorizationToken(const Aws::String& value) { SetAuthorizationToken(value); return *this;}
|
||||
inline AuthorizationData& WithAuthorizationToken(Aws::String&& value) { SetAuthorizationToken(std::move(value)); return *this;}
|
||||
inline AuthorizationData& WithAuthorizationToken(const char* value) { SetAuthorizationToken(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The Unix time in seconds and milliseconds when the authorization token
|
||||
* expires. Authorization tokens are valid for 12 hours.</p>
|
||||
*/
|
||||
inline const Aws::Utils::DateTime& GetExpiresAt() const{ return m_expiresAt; }
|
||||
inline bool ExpiresAtHasBeenSet() const { return m_expiresAtHasBeenSet; }
|
||||
inline void SetExpiresAt(const Aws::Utils::DateTime& value) { m_expiresAtHasBeenSet = true; m_expiresAt = value; }
|
||||
inline void SetExpiresAt(Aws::Utils::DateTime&& value) { m_expiresAtHasBeenSet = true; m_expiresAt = std::move(value); }
|
||||
inline AuthorizationData& WithExpiresAt(const Aws::Utils::DateTime& value) { SetExpiresAt(value); return *this;}
|
||||
inline AuthorizationData& WithExpiresAt(Aws::Utils::DateTime&& value) { SetExpiresAt(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The registry URL to use for this authorization token in a <code>docker
|
||||
* login</code> command. The Amazon ECR registry URL format is
|
||||
* <code>https://aws_account_id.dkr.ecr.region.amazonaws.com</code>. For example,
|
||||
* <code>https://012345678910.dkr.ecr.us-east-1.amazonaws.com</code>.. </p>
|
||||
*/
|
||||
inline const Aws::String& GetProxyEndpoint() const{ return m_proxyEndpoint; }
|
||||
inline bool ProxyEndpointHasBeenSet() const { return m_proxyEndpointHasBeenSet; }
|
||||
inline void SetProxyEndpoint(const Aws::String& value) { m_proxyEndpointHasBeenSet = true; m_proxyEndpoint = value; }
|
||||
inline void SetProxyEndpoint(Aws::String&& value) { m_proxyEndpointHasBeenSet = true; m_proxyEndpoint = std::move(value); }
|
||||
inline void SetProxyEndpoint(const char* value) { m_proxyEndpointHasBeenSet = true; m_proxyEndpoint.assign(value); }
|
||||
inline AuthorizationData& WithProxyEndpoint(const Aws::String& value) { SetProxyEndpoint(value); return *this;}
|
||||
inline AuthorizationData& WithProxyEndpoint(Aws::String&& value) { SetProxyEndpoint(std::move(value)); return *this;}
|
||||
inline AuthorizationData& WithProxyEndpoint(const char* value) { SetProxyEndpoint(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_authorizationToken;
|
||||
bool m_authorizationTokenHasBeenSet = false;
|
||||
|
||||
Aws::Utils::DateTime m_expiresAt;
|
||||
bool m_expiresAtHasBeenSet = false;
|
||||
|
||||
Aws::String m_proxyEndpoint;
|
||||
bool m_proxyEndpointHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,182 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/core/utils/memory/stl/AWSVector.h>
|
||||
#include <aws/core/utils/DateTime.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p>The image details of the Amazon ECR container image.</p><p><h3>See Also:</h3>
|
||||
* <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/AwsEcrContainerImageDetails">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class AwsEcrContainerImageDetails
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API AwsEcrContainerImageDetails();
|
||||
AWS_ECR_API AwsEcrContainerImageDetails(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_ECR_API AwsEcrContainerImageDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The architecture of the Amazon ECR container image.</p>
|
||||
*/
|
||||
inline const Aws::String& GetArchitecture() const{ return m_architecture; }
|
||||
inline bool ArchitectureHasBeenSet() const { return m_architectureHasBeenSet; }
|
||||
inline void SetArchitecture(const Aws::String& value) { m_architectureHasBeenSet = true; m_architecture = value; }
|
||||
inline void SetArchitecture(Aws::String&& value) { m_architectureHasBeenSet = true; m_architecture = std::move(value); }
|
||||
inline void SetArchitecture(const char* value) { m_architectureHasBeenSet = true; m_architecture.assign(value); }
|
||||
inline AwsEcrContainerImageDetails& WithArchitecture(const Aws::String& value) { SetArchitecture(value); return *this;}
|
||||
inline AwsEcrContainerImageDetails& WithArchitecture(Aws::String&& value) { SetArchitecture(std::move(value)); return *this;}
|
||||
inline AwsEcrContainerImageDetails& WithArchitecture(const char* value) { SetArchitecture(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The image author of the Amazon ECR container image.</p>
|
||||
*/
|
||||
inline const Aws::String& GetAuthor() const{ return m_author; }
|
||||
inline bool AuthorHasBeenSet() const { return m_authorHasBeenSet; }
|
||||
inline void SetAuthor(const Aws::String& value) { m_authorHasBeenSet = true; m_author = value; }
|
||||
inline void SetAuthor(Aws::String&& value) { m_authorHasBeenSet = true; m_author = std::move(value); }
|
||||
inline void SetAuthor(const char* value) { m_authorHasBeenSet = true; m_author.assign(value); }
|
||||
inline AwsEcrContainerImageDetails& WithAuthor(const Aws::String& value) { SetAuthor(value); return *this;}
|
||||
inline AwsEcrContainerImageDetails& WithAuthor(Aws::String&& value) { SetAuthor(std::move(value)); return *this;}
|
||||
inline AwsEcrContainerImageDetails& WithAuthor(const char* value) { SetAuthor(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The image hash of the Amazon ECR container image.</p>
|
||||
*/
|
||||
inline const Aws::String& GetImageHash() const{ return m_imageHash; }
|
||||
inline bool ImageHashHasBeenSet() const { return m_imageHashHasBeenSet; }
|
||||
inline void SetImageHash(const Aws::String& value) { m_imageHashHasBeenSet = true; m_imageHash = value; }
|
||||
inline void SetImageHash(Aws::String&& value) { m_imageHashHasBeenSet = true; m_imageHash = std::move(value); }
|
||||
inline void SetImageHash(const char* value) { m_imageHashHasBeenSet = true; m_imageHash.assign(value); }
|
||||
inline AwsEcrContainerImageDetails& WithImageHash(const Aws::String& value) { SetImageHash(value); return *this;}
|
||||
inline AwsEcrContainerImageDetails& WithImageHash(Aws::String&& value) { SetImageHash(std::move(value)); return *this;}
|
||||
inline AwsEcrContainerImageDetails& WithImageHash(const char* value) { SetImageHash(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The image tags attached to the Amazon ECR container image.</p>
|
||||
*/
|
||||
inline const Aws::Vector<Aws::String>& GetImageTags() const{ return m_imageTags; }
|
||||
inline bool ImageTagsHasBeenSet() const { return m_imageTagsHasBeenSet; }
|
||||
inline void SetImageTags(const Aws::Vector<Aws::String>& value) { m_imageTagsHasBeenSet = true; m_imageTags = value; }
|
||||
inline void SetImageTags(Aws::Vector<Aws::String>&& value) { m_imageTagsHasBeenSet = true; m_imageTags = std::move(value); }
|
||||
inline AwsEcrContainerImageDetails& WithImageTags(const Aws::Vector<Aws::String>& value) { SetImageTags(value); return *this;}
|
||||
inline AwsEcrContainerImageDetails& WithImageTags(Aws::Vector<Aws::String>&& value) { SetImageTags(std::move(value)); return *this;}
|
||||
inline AwsEcrContainerImageDetails& AddImageTags(const Aws::String& value) { m_imageTagsHasBeenSet = true; m_imageTags.push_back(value); return *this; }
|
||||
inline AwsEcrContainerImageDetails& AddImageTags(Aws::String&& value) { m_imageTagsHasBeenSet = true; m_imageTags.push_back(std::move(value)); return *this; }
|
||||
inline AwsEcrContainerImageDetails& AddImageTags(const char* value) { m_imageTagsHasBeenSet = true; m_imageTags.push_back(value); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The platform of the Amazon ECR container image.</p>
|
||||
*/
|
||||
inline const Aws::String& GetPlatform() const{ return m_platform; }
|
||||
inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
|
||||
inline void SetPlatform(const Aws::String& value) { m_platformHasBeenSet = true; m_platform = value; }
|
||||
inline void SetPlatform(Aws::String&& value) { m_platformHasBeenSet = true; m_platform = std::move(value); }
|
||||
inline void SetPlatform(const char* value) { m_platformHasBeenSet = true; m_platform.assign(value); }
|
||||
inline AwsEcrContainerImageDetails& WithPlatform(const Aws::String& value) { SetPlatform(value); return *this;}
|
||||
inline AwsEcrContainerImageDetails& WithPlatform(Aws::String&& value) { SetPlatform(std::move(value)); return *this;}
|
||||
inline AwsEcrContainerImageDetails& WithPlatform(const char* value) { SetPlatform(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The date and time the Amazon ECR container image was pushed.</p>
|
||||
*/
|
||||
inline const Aws::Utils::DateTime& GetPushedAt() const{ return m_pushedAt; }
|
||||
inline bool PushedAtHasBeenSet() const { return m_pushedAtHasBeenSet; }
|
||||
inline void SetPushedAt(const Aws::Utils::DateTime& value) { m_pushedAtHasBeenSet = true; m_pushedAt = value; }
|
||||
inline void SetPushedAt(Aws::Utils::DateTime&& value) { m_pushedAtHasBeenSet = true; m_pushedAt = std::move(value); }
|
||||
inline AwsEcrContainerImageDetails& WithPushedAt(const Aws::Utils::DateTime& value) { SetPushedAt(value); return *this;}
|
||||
inline AwsEcrContainerImageDetails& WithPushedAt(Aws::Utils::DateTime&& value) { SetPushedAt(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The registry the Amazon ECR container image belongs to.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRegistry() const{ return m_registry; }
|
||||
inline bool RegistryHasBeenSet() const { return m_registryHasBeenSet; }
|
||||
inline void SetRegistry(const Aws::String& value) { m_registryHasBeenSet = true; m_registry = value; }
|
||||
inline void SetRegistry(Aws::String&& value) { m_registryHasBeenSet = true; m_registry = std::move(value); }
|
||||
inline void SetRegistry(const char* value) { m_registryHasBeenSet = true; m_registry.assign(value); }
|
||||
inline AwsEcrContainerImageDetails& WithRegistry(const Aws::String& value) { SetRegistry(value); return *this;}
|
||||
inline AwsEcrContainerImageDetails& WithRegistry(Aws::String&& value) { SetRegistry(std::move(value)); return *this;}
|
||||
inline AwsEcrContainerImageDetails& WithRegistry(const char* value) { SetRegistry(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The name of the repository the Amazon ECR container image resides in.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
|
||||
inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
|
||||
inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
|
||||
inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
|
||||
inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
|
||||
inline AwsEcrContainerImageDetails& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
|
||||
inline AwsEcrContainerImageDetails& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
|
||||
inline AwsEcrContainerImageDetails& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_architecture;
|
||||
bool m_architectureHasBeenSet = false;
|
||||
|
||||
Aws::String m_author;
|
||||
bool m_authorHasBeenSet = false;
|
||||
|
||||
Aws::String m_imageHash;
|
||||
bool m_imageHashHasBeenSet = false;
|
||||
|
||||
Aws::Vector<Aws::String> m_imageTags;
|
||||
bool m_imageTagsHasBeenSet = false;
|
||||
|
||||
Aws::String m_platform;
|
||||
bool m_platformHasBeenSet = false;
|
||||
|
||||
Aws::Utils::DateTime m_pushedAt;
|
||||
bool m_pushedAtHasBeenSet = false;
|
||||
|
||||
Aws::String m_registry;
|
||||
bool m_registryHasBeenSet = false;
|
||||
|
||||
Aws::String m_repositoryName;
|
||||
bool m_repositoryNameHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,97 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/ecr/ECRRequest.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/core/utils/memory/stl/AWSVector.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
*/
|
||||
class BatchCheckLayerAvailabilityRequest : public ECRRequest
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API BatchCheckLayerAvailabilityRequest();
|
||||
|
||||
// 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 "BatchCheckLayerAvailability"; }
|
||||
|
||||
AWS_ECR_API Aws::String SerializePayload() const override;
|
||||
|
||||
AWS_ECR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The Amazon Web Services account ID associated with the registry that contains
|
||||
* the image layers to check. If you do not specify a registry, the default
|
||||
* registry is assumed.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRegistryId() const{ return m_registryId; }
|
||||
inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
|
||||
inline void SetRegistryId(const Aws::String& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
|
||||
inline void SetRegistryId(Aws::String&& value) { m_registryIdHasBeenSet = true; m_registryId = std::move(value); }
|
||||
inline void SetRegistryId(const char* value) { m_registryIdHasBeenSet = true; m_registryId.assign(value); }
|
||||
inline BatchCheckLayerAvailabilityRequest& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
|
||||
inline BatchCheckLayerAvailabilityRequest& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
|
||||
inline BatchCheckLayerAvailabilityRequest& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The name of the repository that is associated with the image layers to
|
||||
* check.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
|
||||
inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
|
||||
inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
|
||||
inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
|
||||
inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
|
||||
inline BatchCheckLayerAvailabilityRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
|
||||
inline BatchCheckLayerAvailabilityRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
|
||||
inline BatchCheckLayerAvailabilityRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The digests of the image layers to check.</p>
|
||||
*/
|
||||
inline const Aws::Vector<Aws::String>& GetLayerDigests() const{ return m_layerDigests; }
|
||||
inline bool LayerDigestsHasBeenSet() const { return m_layerDigestsHasBeenSet; }
|
||||
inline void SetLayerDigests(const Aws::Vector<Aws::String>& value) { m_layerDigestsHasBeenSet = true; m_layerDigests = value; }
|
||||
inline void SetLayerDigests(Aws::Vector<Aws::String>&& value) { m_layerDigestsHasBeenSet = true; m_layerDigests = std::move(value); }
|
||||
inline BatchCheckLayerAvailabilityRequest& WithLayerDigests(const Aws::Vector<Aws::String>& value) { SetLayerDigests(value); return *this;}
|
||||
inline BatchCheckLayerAvailabilityRequest& WithLayerDigests(Aws::Vector<Aws::String>&& value) { SetLayerDigests(std::move(value)); return *this;}
|
||||
inline BatchCheckLayerAvailabilityRequest& AddLayerDigests(const Aws::String& value) { m_layerDigestsHasBeenSet = true; m_layerDigests.push_back(value); return *this; }
|
||||
inline BatchCheckLayerAvailabilityRequest& AddLayerDigests(Aws::String&& value) { m_layerDigestsHasBeenSet = true; m_layerDigests.push_back(std::move(value)); return *this; }
|
||||
inline BatchCheckLayerAvailabilityRequest& AddLayerDigests(const char* value) { m_layerDigestsHasBeenSet = true; m_layerDigests.push_back(value); return *this; }
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_registryId;
|
||||
bool m_registryIdHasBeenSet = false;
|
||||
|
||||
Aws::String m_repositoryName;
|
||||
bool m_repositoryNameHasBeenSet = false;
|
||||
|
||||
Aws::Vector<Aws::String> m_layerDigests;
|
||||
bool m_layerDigestsHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,86 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSVector.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/ecr/model/Layer.h>
|
||||
#include <aws/ecr/model/LayerFailure.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
template<typename RESULT_TYPE>
|
||||
class AmazonWebServiceResult;
|
||||
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class BatchCheckLayerAvailabilityResult
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API BatchCheckLayerAvailabilityResult();
|
||||
AWS_ECR_API BatchCheckLayerAvailabilityResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
AWS_ECR_API BatchCheckLayerAvailabilityResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>A list of image layer objects corresponding to the image layer references in
|
||||
* the request.</p>
|
||||
*/
|
||||
inline const Aws::Vector<Layer>& GetLayers() const{ return m_layers; }
|
||||
inline void SetLayers(const Aws::Vector<Layer>& value) { m_layers = value; }
|
||||
inline void SetLayers(Aws::Vector<Layer>&& value) { m_layers = std::move(value); }
|
||||
inline BatchCheckLayerAvailabilityResult& WithLayers(const Aws::Vector<Layer>& value) { SetLayers(value); return *this;}
|
||||
inline BatchCheckLayerAvailabilityResult& WithLayers(Aws::Vector<Layer>&& value) { SetLayers(std::move(value)); return *this;}
|
||||
inline BatchCheckLayerAvailabilityResult& AddLayers(const Layer& value) { m_layers.push_back(value); return *this; }
|
||||
inline BatchCheckLayerAvailabilityResult& AddLayers(Layer&& value) { m_layers.push_back(std::move(value)); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>Any failures associated with the call.</p>
|
||||
*/
|
||||
inline const Aws::Vector<LayerFailure>& GetFailures() const{ return m_failures; }
|
||||
inline void SetFailures(const Aws::Vector<LayerFailure>& value) { m_failures = value; }
|
||||
inline void SetFailures(Aws::Vector<LayerFailure>&& value) { m_failures = std::move(value); }
|
||||
inline BatchCheckLayerAvailabilityResult& WithFailures(const Aws::Vector<LayerFailure>& value) { SetFailures(value); return *this;}
|
||||
inline BatchCheckLayerAvailabilityResult& WithFailures(Aws::Vector<LayerFailure>&& value) { SetFailures(std::move(value)); return *this;}
|
||||
inline BatchCheckLayerAvailabilityResult& AddFailures(const LayerFailure& value) { m_failures.push_back(value); return *this; }
|
||||
inline BatchCheckLayerAvailabilityResult& AddFailures(LayerFailure&& value) { m_failures.push_back(std::move(value)); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetRequestId() const{ return m_requestId; }
|
||||
inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
|
||||
inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
|
||||
inline void SetRequestId(const char* value) { m_requestId.assign(value); }
|
||||
inline BatchCheckLayerAvailabilityResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
|
||||
inline BatchCheckLayerAvailabilityResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
|
||||
inline BatchCheckLayerAvailabilityResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::Vector<Layer> m_layers;
|
||||
|
||||
Aws::Vector<LayerFailure> m_failures;
|
||||
|
||||
Aws::String m_requestId;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,103 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/ecr/ECRRequest.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/core/utils/memory/stl/AWSVector.h>
|
||||
#include <aws/ecr/model/ImageIdentifier.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p>Deletes specified images within a specified repository. Images are specified
|
||||
* with either the <code>imageTag</code> or <code>imageDigest</code>.</p><p><h3>See
|
||||
* Also:</h3> <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/BatchDeleteImageRequest">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class BatchDeleteImageRequest : public ECRRequest
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API BatchDeleteImageRequest();
|
||||
|
||||
// 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 "BatchDeleteImage"; }
|
||||
|
||||
AWS_ECR_API Aws::String SerializePayload() const override;
|
||||
|
||||
AWS_ECR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The Amazon Web Services account ID associated with the registry that contains
|
||||
* the image to delete. If you do not specify a registry, the default registry is
|
||||
* assumed.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRegistryId() const{ return m_registryId; }
|
||||
inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
|
||||
inline void SetRegistryId(const Aws::String& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
|
||||
inline void SetRegistryId(Aws::String&& value) { m_registryIdHasBeenSet = true; m_registryId = std::move(value); }
|
||||
inline void SetRegistryId(const char* value) { m_registryIdHasBeenSet = true; m_registryId.assign(value); }
|
||||
inline BatchDeleteImageRequest& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
|
||||
inline BatchDeleteImageRequest& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
|
||||
inline BatchDeleteImageRequest& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The repository that contains the image to delete.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
|
||||
inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
|
||||
inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
|
||||
inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
|
||||
inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
|
||||
inline BatchDeleteImageRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
|
||||
inline BatchDeleteImageRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
|
||||
inline BatchDeleteImageRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>A list of image ID references that correspond to images to delete. The format
|
||||
* of the <code>imageIds</code> reference is <code>imageTag=tag</code> or
|
||||
* <code>imageDigest=digest</code>.</p>
|
||||
*/
|
||||
inline const Aws::Vector<ImageIdentifier>& GetImageIds() const{ return m_imageIds; }
|
||||
inline bool ImageIdsHasBeenSet() const { return m_imageIdsHasBeenSet; }
|
||||
inline void SetImageIds(const Aws::Vector<ImageIdentifier>& value) { m_imageIdsHasBeenSet = true; m_imageIds = value; }
|
||||
inline void SetImageIds(Aws::Vector<ImageIdentifier>&& value) { m_imageIdsHasBeenSet = true; m_imageIds = std::move(value); }
|
||||
inline BatchDeleteImageRequest& WithImageIds(const Aws::Vector<ImageIdentifier>& value) { SetImageIds(value); return *this;}
|
||||
inline BatchDeleteImageRequest& WithImageIds(Aws::Vector<ImageIdentifier>&& value) { SetImageIds(std::move(value)); return *this;}
|
||||
inline BatchDeleteImageRequest& AddImageIds(const ImageIdentifier& value) { m_imageIdsHasBeenSet = true; m_imageIds.push_back(value); return *this; }
|
||||
inline BatchDeleteImageRequest& AddImageIds(ImageIdentifier&& value) { m_imageIdsHasBeenSet = true; m_imageIds.push_back(std::move(value)); return *this; }
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_registryId;
|
||||
bool m_registryIdHasBeenSet = false;
|
||||
|
||||
Aws::String m_repositoryName;
|
||||
bool m_repositoryNameHasBeenSet = false;
|
||||
|
||||
Aws::Vector<ImageIdentifier> m_imageIds;
|
||||
bool m_imageIdsHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,85 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSVector.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/ecr/model/ImageIdentifier.h>
|
||||
#include <aws/ecr/model/ImageFailure.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
template<typename RESULT_TYPE>
|
||||
class AmazonWebServiceResult;
|
||||
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class BatchDeleteImageResult
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API BatchDeleteImageResult();
|
||||
AWS_ECR_API BatchDeleteImageResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
AWS_ECR_API BatchDeleteImageResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The image IDs of the deleted images.</p>
|
||||
*/
|
||||
inline const Aws::Vector<ImageIdentifier>& GetImageIds() const{ return m_imageIds; }
|
||||
inline void SetImageIds(const Aws::Vector<ImageIdentifier>& value) { m_imageIds = value; }
|
||||
inline void SetImageIds(Aws::Vector<ImageIdentifier>&& value) { m_imageIds = std::move(value); }
|
||||
inline BatchDeleteImageResult& WithImageIds(const Aws::Vector<ImageIdentifier>& value) { SetImageIds(value); return *this;}
|
||||
inline BatchDeleteImageResult& WithImageIds(Aws::Vector<ImageIdentifier>&& value) { SetImageIds(std::move(value)); return *this;}
|
||||
inline BatchDeleteImageResult& AddImageIds(const ImageIdentifier& value) { m_imageIds.push_back(value); return *this; }
|
||||
inline BatchDeleteImageResult& AddImageIds(ImageIdentifier&& value) { m_imageIds.push_back(std::move(value)); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>Any failures associated with the call.</p>
|
||||
*/
|
||||
inline const Aws::Vector<ImageFailure>& GetFailures() const{ return m_failures; }
|
||||
inline void SetFailures(const Aws::Vector<ImageFailure>& value) { m_failures = value; }
|
||||
inline void SetFailures(Aws::Vector<ImageFailure>&& value) { m_failures = std::move(value); }
|
||||
inline BatchDeleteImageResult& WithFailures(const Aws::Vector<ImageFailure>& value) { SetFailures(value); return *this;}
|
||||
inline BatchDeleteImageResult& WithFailures(Aws::Vector<ImageFailure>&& value) { SetFailures(std::move(value)); return *this;}
|
||||
inline BatchDeleteImageResult& AddFailures(const ImageFailure& value) { m_failures.push_back(value); return *this; }
|
||||
inline BatchDeleteImageResult& AddFailures(ImageFailure&& value) { m_failures.push_back(std::move(value)); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetRequestId() const{ return m_requestId; }
|
||||
inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
|
||||
inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
|
||||
inline void SetRequestId(const char* value) { m_requestId.assign(value); }
|
||||
inline BatchDeleteImageResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
|
||||
inline BatchDeleteImageResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
|
||||
inline BatchDeleteImageResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::Vector<ImageIdentifier> m_imageIds;
|
||||
|
||||
Aws::Vector<ImageFailure> m_failures;
|
||||
|
||||
Aws::String m_requestId;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,119 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/ecr/ECRRequest.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/core/utils/memory/stl/AWSVector.h>
|
||||
#include <aws/ecr/model/ImageIdentifier.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
*/
|
||||
class BatchGetImageRequest : public ECRRequest
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API BatchGetImageRequest();
|
||||
|
||||
// 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 "BatchGetImage"; }
|
||||
|
||||
AWS_ECR_API Aws::String SerializePayload() const override;
|
||||
|
||||
AWS_ECR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The Amazon Web Services account ID associated with the registry that contains
|
||||
* the images to describe. If you do not specify a registry, the default registry
|
||||
* is assumed.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRegistryId() const{ return m_registryId; }
|
||||
inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
|
||||
inline void SetRegistryId(const Aws::String& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
|
||||
inline void SetRegistryId(Aws::String&& value) { m_registryIdHasBeenSet = true; m_registryId = std::move(value); }
|
||||
inline void SetRegistryId(const char* value) { m_registryIdHasBeenSet = true; m_registryId.assign(value); }
|
||||
inline BatchGetImageRequest& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
|
||||
inline BatchGetImageRequest& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
|
||||
inline BatchGetImageRequest& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The repository that contains the images to describe.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
|
||||
inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
|
||||
inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
|
||||
inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
|
||||
inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
|
||||
inline BatchGetImageRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
|
||||
inline BatchGetImageRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
|
||||
inline BatchGetImageRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>A list of image ID references that correspond to images to describe. The
|
||||
* format of the <code>imageIds</code> reference is <code>imageTag=tag</code> or
|
||||
* <code>imageDigest=digest</code>.</p>
|
||||
*/
|
||||
inline const Aws::Vector<ImageIdentifier>& GetImageIds() const{ return m_imageIds; }
|
||||
inline bool ImageIdsHasBeenSet() const { return m_imageIdsHasBeenSet; }
|
||||
inline void SetImageIds(const Aws::Vector<ImageIdentifier>& value) { m_imageIdsHasBeenSet = true; m_imageIds = value; }
|
||||
inline void SetImageIds(Aws::Vector<ImageIdentifier>&& value) { m_imageIdsHasBeenSet = true; m_imageIds = std::move(value); }
|
||||
inline BatchGetImageRequest& WithImageIds(const Aws::Vector<ImageIdentifier>& value) { SetImageIds(value); return *this;}
|
||||
inline BatchGetImageRequest& WithImageIds(Aws::Vector<ImageIdentifier>&& value) { SetImageIds(std::move(value)); return *this;}
|
||||
inline BatchGetImageRequest& AddImageIds(const ImageIdentifier& value) { m_imageIdsHasBeenSet = true; m_imageIds.push_back(value); return *this; }
|
||||
inline BatchGetImageRequest& AddImageIds(ImageIdentifier&& value) { m_imageIdsHasBeenSet = true; m_imageIds.push_back(std::move(value)); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The accepted media types for the request.</p> <p>Valid values:
|
||||
* <code>application/vnd.docker.distribution.manifest.v1+json</code> |
|
||||
* <code>application/vnd.docker.distribution.manifest.v2+json</code> |
|
||||
* <code>application/vnd.oci.image.manifest.v1+json</code> </p>
|
||||
*/
|
||||
inline const Aws::Vector<Aws::String>& GetAcceptedMediaTypes() const{ return m_acceptedMediaTypes; }
|
||||
inline bool AcceptedMediaTypesHasBeenSet() const { return m_acceptedMediaTypesHasBeenSet; }
|
||||
inline void SetAcceptedMediaTypes(const Aws::Vector<Aws::String>& value) { m_acceptedMediaTypesHasBeenSet = true; m_acceptedMediaTypes = value; }
|
||||
inline void SetAcceptedMediaTypes(Aws::Vector<Aws::String>&& value) { m_acceptedMediaTypesHasBeenSet = true; m_acceptedMediaTypes = std::move(value); }
|
||||
inline BatchGetImageRequest& WithAcceptedMediaTypes(const Aws::Vector<Aws::String>& value) { SetAcceptedMediaTypes(value); return *this;}
|
||||
inline BatchGetImageRequest& WithAcceptedMediaTypes(Aws::Vector<Aws::String>&& value) { SetAcceptedMediaTypes(std::move(value)); return *this;}
|
||||
inline BatchGetImageRequest& AddAcceptedMediaTypes(const Aws::String& value) { m_acceptedMediaTypesHasBeenSet = true; m_acceptedMediaTypes.push_back(value); return *this; }
|
||||
inline BatchGetImageRequest& AddAcceptedMediaTypes(Aws::String&& value) { m_acceptedMediaTypesHasBeenSet = true; m_acceptedMediaTypes.push_back(std::move(value)); return *this; }
|
||||
inline BatchGetImageRequest& AddAcceptedMediaTypes(const char* value) { m_acceptedMediaTypesHasBeenSet = true; m_acceptedMediaTypes.push_back(value); return *this; }
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_registryId;
|
||||
bool m_registryIdHasBeenSet = false;
|
||||
|
||||
Aws::String m_repositoryName;
|
||||
bool m_repositoryNameHasBeenSet = false;
|
||||
|
||||
Aws::Vector<ImageIdentifier> m_imageIds;
|
||||
bool m_imageIdsHasBeenSet = false;
|
||||
|
||||
Aws::Vector<Aws::String> m_acceptedMediaTypes;
|
||||
bool m_acceptedMediaTypesHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,86 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSVector.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/ecr/model/Image.h>
|
||||
#include <aws/ecr/model/ImageFailure.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
template<typename RESULT_TYPE>
|
||||
class AmazonWebServiceResult;
|
||||
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class BatchGetImageResult
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API BatchGetImageResult();
|
||||
AWS_ECR_API BatchGetImageResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
AWS_ECR_API BatchGetImageResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>A list of image objects corresponding to the image references in the
|
||||
* request.</p>
|
||||
*/
|
||||
inline const Aws::Vector<Image>& GetImages() const{ return m_images; }
|
||||
inline void SetImages(const Aws::Vector<Image>& value) { m_images = value; }
|
||||
inline void SetImages(Aws::Vector<Image>&& value) { m_images = std::move(value); }
|
||||
inline BatchGetImageResult& WithImages(const Aws::Vector<Image>& value) { SetImages(value); return *this;}
|
||||
inline BatchGetImageResult& WithImages(Aws::Vector<Image>&& value) { SetImages(std::move(value)); return *this;}
|
||||
inline BatchGetImageResult& AddImages(const Image& value) { m_images.push_back(value); return *this; }
|
||||
inline BatchGetImageResult& AddImages(Image&& value) { m_images.push_back(std::move(value)); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>Any failures associated with the call.</p>
|
||||
*/
|
||||
inline const Aws::Vector<ImageFailure>& GetFailures() const{ return m_failures; }
|
||||
inline void SetFailures(const Aws::Vector<ImageFailure>& value) { m_failures = value; }
|
||||
inline void SetFailures(Aws::Vector<ImageFailure>&& value) { m_failures = std::move(value); }
|
||||
inline BatchGetImageResult& WithFailures(const Aws::Vector<ImageFailure>& value) { SetFailures(value); return *this;}
|
||||
inline BatchGetImageResult& WithFailures(Aws::Vector<ImageFailure>&& value) { SetFailures(std::move(value)); return *this;}
|
||||
inline BatchGetImageResult& AddFailures(const ImageFailure& value) { m_failures.push_back(value); return *this; }
|
||||
inline BatchGetImageResult& AddFailures(ImageFailure&& value) { m_failures.push_back(std::move(value)); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetRequestId() const{ return m_requestId; }
|
||||
inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
|
||||
inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
|
||||
inline void SetRequestId(const char* value) { m_requestId.assign(value); }
|
||||
inline BatchGetImageResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
|
||||
inline BatchGetImageResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
|
||||
inline BatchGetImageResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::Vector<Image> m_images;
|
||||
|
||||
Aws::Vector<ImageFailure> m_failures;
|
||||
|
||||
Aws::String m_requestId;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,60 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/ecr/ECRRequest.h>
|
||||
#include <aws/core/utils/memory/stl/AWSVector.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
*/
|
||||
class BatchGetRepositoryScanningConfigurationRequest : public ECRRequest
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API BatchGetRepositoryScanningConfigurationRequest();
|
||||
|
||||
// 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 "BatchGetRepositoryScanningConfiguration"; }
|
||||
|
||||
AWS_ECR_API Aws::String SerializePayload() const override;
|
||||
|
||||
AWS_ECR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>One or more repository names to get the scanning configuration for.</p>
|
||||
*/
|
||||
inline const Aws::Vector<Aws::String>& GetRepositoryNames() const{ return m_repositoryNames; }
|
||||
inline bool RepositoryNamesHasBeenSet() const { return m_repositoryNamesHasBeenSet; }
|
||||
inline void SetRepositoryNames(const Aws::Vector<Aws::String>& value) { m_repositoryNamesHasBeenSet = true; m_repositoryNames = value; }
|
||||
inline void SetRepositoryNames(Aws::Vector<Aws::String>&& value) { m_repositoryNamesHasBeenSet = true; m_repositoryNames = std::move(value); }
|
||||
inline BatchGetRepositoryScanningConfigurationRequest& WithRepositoryNames(const Aws::Vector<Aws::String>& value) { SetRepositoryNames(value); return *this;}
|
||||
inline BatchGetRepositoryScanningConfigurationRequest& WithRepositoryNames(Aws::Vector<Aws::String>&& value) { SetRepositoryNames(std::move(value)); return *this;}
|
||||
inline BatchGetRepositoryScanningConfigurationRequest& AddRepositoryNames(const Aws::String& value) { m_repositoryNamesHasBeenSet = true; m_repositoryNames.push_back(value); return *this; }
|
||||
inline BatchGetRepositoryScanningConfigurationRequest& AddRepositoryNames(Aws::String&& value) { m_repositoryNamesHasBeenSet = true; m_repositoryNames.push_back(std::move(value)); return *this; }
|
||||
inline BatchGetRepositoryScanningConfigurationRequest& AddRepositoryNames(const char* value) { m_repositoryNamesHasBeenSet = true; m_repositoryNames.push_back(value); return *this; }
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::Vector<Aws::String> m_repositoryNames;
|
||||
bool m_repositoryNamesHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,85 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSVector.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/ecr/model/RepositoryScanningConfiguration.h>
|
||||
#include <aws/ecr/model/RepositoryScanningConfigurationFailure.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
template<typename RESULT_TYPE>
|
||||
class AmazonWebServiceResult;
|
||||
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class BatchGetRepositoryScanningConfigurationResult
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API BatchGetRepositoryScanningConfigurationResult();
|
||||
AWS_ECR_API BatchGetRepositoryScanningConfigurationResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
AWS_ECR_API BatchGetRepositoryScanningConfigurationResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The scanning configuration for the requested repositories.</p>
|
||||
*/
|
||||
inline const Aws::Vector<RepositoryScanningConfiguration>& GetScanningConfigurations() const{ return m_scanningConfigurations; }
|
||||
inline void SetScanningConfigurations(const Aws::Vector<RepositoryScanningConfiguration>& value) { m_scanningConfigurations = value; }
|
||||
inline void SetScanningConfigurations(Aws::Vector<RepositoryScanningConfiguration>&& value) { m_scanningConfigurations = std::move(value); }
|
||||
inline BatchGetRepositoryScanningConfigurationResult& WithScanningConfigurations(const Aws::Vector<RepositoryScanningConfiguration>& value) { SetScanningConfigurations(value); return *this;}
|
||||
inline BatchGetRepositoryScanningConfigurationResult& WithScanningConfigurations(Aws::Vector<RepositoryScanningConfiguration>&& value) { SetScanningConfigurations(std::move(value)); return *this;}
|
||||
inline BatchGetRepositoryScanningConfigurationResult& AddScanningConfigurations(const RepositoryScanningConfiguration& value) { m_scanningConfigurations.push_back(value); return *this; }
|
||||
inline BatchGetRepositoryScanningConfigurationResult& AddScanningConfigurations(RepositoryScanningConfiguration&& value) { m_scanningConfigurations.push_back(std::move(value)); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>Any failures associated with the call.</p>
|
||||
*/
|
||||
inline const Aws::Vector<RepositoryScanningConfigurationFailure>& GetFailures() const{ return m_failures; }
|
||||
inline void SetFailures(const Aws::Vector<RepositoryScanningConfigurationFailure>& value) { m_failures = value; }
|
||||
inline void SetFailures(Aws::Vector<RepositoryScanningConfigurationFailure>&& value) { m_failures = std::move(value); }
|
||||
inline BatchGetRepositoryScanningConfigurationResult& WithFailures(const Aws::Vector<RepositoryScanningConfigurationFailure>& value) { SetFailures(value); return *this;}
|
||||
inline BatchGetRepositoryScanningConfigurationResult& WithFailures(Aws::Vector<RepositoryScanningConfigurationFailure>&& value) { SetFailures(std::move(value)); return *this;}
|
||||
inline BatchGetRepositoryScanningConfigurationResult& AddFailures(const RepositoryScanningConfigurationFailure& value) { m_failures.push_back(value); return *this; }
|
||||
inline BatchGetRepositoryScanningConfigurationResult& AddFailures(RepositoryScanningConfigurationFailure&& value) { m_failures.push_back(std::move(value)); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetRequestId() const{ return m_requestId; }
|
||||
inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
|
||||
inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
|
||||
inline void SetRequestId(const char* value) { m_requestId.assign(value); }
|
||||
inline BatchGetRepositoryScanningConfigurationResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
|
||||
inline BatchGetRepositoryScanningConfigurationResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
|
||||
inline BatchGetRepositoryScanningConfigurationResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::Vector<RepositoryScanningConfiguration> m_scanningConfigurations;
|
||||
|
||||
Aws::Vector<RepositoryScanningConfigurationFailure> m_failures;
|
||||
|
||||
Aws::String m_requestId;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,114 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/ecr/ECRRequest.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/core/utils/memory/stl/AWSVector.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
*/
|
||||
class CompleteLayerUploadRequest : public ECRRequest
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API CompleteLayerUploadRequest();
|
||||
|
||||
// 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 "CompleteLayerUpload"; }
|
||||
|
||||
AWS_ECR_API Aws::String SerializePayload() const override;
|
||||
|
||||
AWS_ECR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The Amazon Web Services account ID associated with the registry to which to
|
||||
* upload layers. If you do not specify a registry, the default registry is
|
||||
* assumed.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRegistryId() const{ return m_registryId; }
|
||||
inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
|
||||
inline void SetRegistryId(const Aws::String& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
|
||||
inline void SetRegistryId(Aws::String&& value) { m_registryIdHasBeenSet = true; m_registryId = std::move(value); }
|
||||
inline void SetRegistryId(const char* value) { m_registryIdHasBeenSet = true; m_registryId.assign(value); }
|
||||
inline CompleteLayerUploadRequest& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
|
||||
inline CompleteLayerUploadRequest& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
|
||||
inline CompleteLayerUploadRequest& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The name of the repository to associate with the image layer.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
|
||||
inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
|
||||
inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
|
||||
inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
|
||||
inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
|
||||
inline CompleteLayerUploadRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
|
||||
inline CompleteLayerUploadRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
|
||||
inline CompleteLayerUploadRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The upload ID from a previous <a>InitiateLayerUpload</a> operation to
|
||||
* associate with the image layer.</p>
|
||||
*/
|
||||
inline const Aws::String& GetUploadId() const{ return m_uploadId; }
|
||||
inline bool UploadIdHasBeenSet() const { return m_uploadIdHasBeenSet; }
|
||||
inline void SetUploadId(const Aws::String& value) { m_uploadIdHasBeenSet = true; m_uploadId = value; }
|
||||
inline void SetUploadId(Aws::String&& value) { m_uploadIdHasBeenSet = true; m_uploadId = std::move(value); }
|
||||
inline void SetUploadId(const char* value) { m_uploadIdHasBeenSet = true; m_uploadId.assign(value); }
|
||||
inline CompleteLayerUploadRequest& WithUploadId(const Aws::String& value) { SetUploadId(value); return *this;}
|
||||
inline CompleteLayerUploadRequest& WithUploadId(Aws::String&& value) { SetUploadId(std::move(value)); return *this;}
|
||||
inline CompleteLayerUploadRequest& WithUploadId(const char* value) { SetUploadId(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The <code>sha256</code> digest of the image layer.</p>
|
||||
*/
|
||||
inline const Aws::Vector<Aws::String>& GetLayerDigests() const{ return m_layerDigests; }
|
||||
inline bool LayerDigestsHasBeenSet() const { return m_layerDigestsHasBeenSet; }
|
||||
inline void SetLayerDigests(const Aws::Vector<Aws::String>& value) { m_layerDigestsHasBeenSet = true; m_layerDigests = value; }
|
||||
inline void SetLayerDigests(Aws::Vector<Aws::String>&& value) { m_layerDigestsHasBeenSet = true; m_layerDigests = std::move(value); }
|
||||
inline CompleteLayerUploadRequest& WithLayerDigests(const Aws::Vector<Aws::String>& value) { SetLayerDigests(value); return *this;}
|
||||
inline CompleteLayerUploadRequest& WithLayerDigests(Aws::Vector<Aws::String>&& value) { SetLayerDigests(std::move(value)); return *this;}
|
||||
inline CompleteLayerUploadRequest& AddLayerDigests(const Aws::String& value) { m_layerDigestsHasBeenSet = true; m_layerDigests.push_back(value); return *this; }
|
||||
inline CompleteLayerUploadRequest& AddLayerDigests(Aws::String&& value) { m_layerDigestsHasBeenSet = true; m_layerDigests.push_back(std::move(value)); return *this; }
|
||||
inline CompleteLayerUploadRequest& AddLayerDigests(const char* value) { m_layerDigestsHasBeenSet = true; m_layerDigests.push_back(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;
|
||||
|
||||
Aws::Vector<Aws::String> m_layerDigests;
|
||||
bool m_layerDigestsHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,112 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
template<typename RESULT_TYPE>
|
||||
class AmazonWebServiceResult;
|
||||
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class CompleteLayerUploadResult
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API CompleteLayerUploadResult();
|
||||
AWS_ECR_API CompleteLayerUploadResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
AWS_ECR_API CompleteLayerUploadResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The registry ID associated with the request.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRegistryId() const{ return m_registryId; }
|
||||
inline void SetRegistryId(const Aws::String& value) { m_registryId = value; }
|
||||
inline void SetRegistryId(Aws::String&& value) { m_registryId = std::move(value); }
|
||||
inline void SetRegistryId(const char* value) { m_registryId.assign(value); }
|
||||
inline CompleteLayerUploadResult& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
|
||||
inline CompleteLayerUploadResult& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
|
||||
inline CompleteLayerUploadResult& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The repository name associated with the request.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
|
||||
inline void SetRepositoryName(const Aws::String& value) { m_repositoryName = value; }
|
||||
inline void SetRepositoryName(Aws::String&& value) { m_repositoryName = std::move(value); }
|
||||
inline void SetRepositoryName(const char* value) { m_repositoryName.assign(value); }
|
||||
inline CompleteLayerUploadResult& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
|
||||
inline CompleteLayerUploadResult& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
|
||||
inline CompleteLayerUploadResult& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The upload ID associated with the layer.</p>
|
||||
*/
|
||||
inline const Aws::String& GetUploadId() const{ return m_uploadId; }
|
||||
inline void SetUploadId(const Aws::String& value) { m_uploadId = value; }
|
||||
inline void SetUploadId(Aws::String&& value) { m_uploadId = std::move(value); }
|
||||
inline void SetUploadId(const char* value) { m_uploadId.assign(value); }
|
||||
inline CompleteLayerUploadResult& WithUploadId(const Aws::String& value) { SetUploadId(value); return *this;}
|
||||
inline CompleteLayerUploadResult& WithUploadId(Aws::String&& value) { SetUploadId(std::move(value)); return *this;}
|
||||
inline CompleteLayerUploadResult& WithUploadId(const char* value) { SetUploadId(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The <code>sha256</code> digest of the image layer.</p>
|
||||
*/
|
||||
inline const Aws::String& GetLayerDigest() const{ return m_layerDigest; }
|
||||
inline void SetLayerDigest(const Aws::String& value) { m_layerDigest = value; }
|
||||
inline void SetLayerDigest(Aws::String&& value) { m_layerDigest = std::move(value); }
|
||||
inline void SetLayerDigest(const char* value) { m_layerDigest.assign(value); }
|
||||
inline CompleteLayerUploadResult& WithLayerDigest(const Aws::String& value) { SetLayerDigest(value); return *this;}
|
||||
inline CompleteLayerUploadResult& WithLayerDigest(Aws::String&& value) { SetLayerDigest(std::move(value)); return *this;}
|
||||
inline CompleteLayerUploadResult& WithLayerDigest(const char* value) { SetLayerDigest(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetRequestId() const{ return m_requestId; }
|
||||
inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
|
||||
inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
|
||||
inline void SetRequestId(const char* value) { m_requestId.assign(value); }
|
||||
inline CompleteLayerUploadResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
|
||||
inline CompleteLayerUploadResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
|
||||
inline CompleteLayerUploadResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_registryId;
|
||||
|
||||
Aws::String m_repositoryName;
|
||||
|
||||
Aws::String m_uploadId;
|
||||
|
||||
Aws::String m_layerDigest;
|
||||
|
||||
Aws::String m_requestId;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,140 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/ecr/ECRRequest.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/ecr/model/UpstreamRegistry.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
*/
|
||||
class CreatePullThroughCacheRuleRequest : public ECRRequest
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API CreatePullThroughCacheRuleRequest();
|
||||
|
||||
// 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 "CreatePullThroughCacheRule"; }
|
||||
|
||||
AWS_ECR_API Aws::String SerializePayload() const override;
|
||||
|
||||
AWS_ECR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The repository name prefix to use when caching images from the source
|
||||
* registry.</p>
|
||||
*/
|
||||
inline const Aws::String& GetEcrRepositoryPrefix() const{ return m_ecrRepositoryPrefix; }
|
||||
inline bool EcrRepositoryPrefixHasBeenSet() const { return m_ecrRepositoryPrefixHasBeenSet; }
|
||||
inline void SetEcrRepositoryPrefix(const Aws::String& value) { m_ecrRepositoryPrefixHasBeenSet = true; m_ecrRepositoryPrefix = value; }
|
||||
inline void SetEcrRepositoryPrefix(Aws::String&& value) { m_ecrRepositoryPrefixHasBeenSet = true; m_ecrRepositoryPrefix = std::move(value); }
|
||||
inline void SetEcrRepositoryPrefix(const char* value) { m_ecrRepositoryPrefixHasBeenSet = true; m_ecrRepositoryPrefix.assign(value); }
|
||||
inline CreatePullThroughCacheRuleRequest& WithEcrRepositoryPrefix(const Aws::String& value) { SetEcrRepositoryPrefix(value); return *this;}
|
||||
inline CreatePullThroughCacheRuleRequest& WithEcrRepositoryPrefix(Aws::String&& value) { SetEcrRepositoryPrefix(std::move(value)); return *this;}
|
||||
inline CreatePullThroughCacheRuleRequest& WithEcrRepositoryPrefix(const char* value) { SetEcrRepositoryPrefix(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The registry URL of the upstream public registry to use as the source for the
|
||||
* pull through cache rule. The following is the syntax to use for each supported
|
||||
* upstream registry.</p> <ul> <li> <p>Amazon ECR Public (<code>ecr-public</code>)
|
||||
* - <code>public.ecr.aws</code> </p> </li> <li> <p>Docker Hub
|
||||
* (<code>docker-hub</code>) - <code>registry-1.docker.io</code> </p> </li> <li>
|
||||
* <p>Quay (<code>quay</code>) - <code>quay.io</code> </p> </li> <li> <p>Kubernetes
|
||||
* (<code>k8s</code>) - <code>registry.k8s.io</code> </p> </li> <li> <p>GitHub
|
||||
* Container Registry (<code>github-container-registry</code>) -
|
||||
* <code>ghcr.io</code> </p> </li> <li> <p>Microsoft Azure Container Registry
|
||||
* (<code>azure-container-registry</code>) - <code><custom>.azurecr.io</code>
|
||||
* </p> </li> </ul>
|
||||
*/
|
||||
inline const Aws::String& GetUpstreamRegistryUrl() const{ return m_upstreamRegistryUrl; }
|
||||
inline bool UpstreamRegistryUrlHasBeenSet() const { return m_upstreamRegistryUrlHasBeenSet; }
|
||||
inline void SetUpstreamRegistryUrl(const Aws::String& value) { m_upstreamRegistryUrlHasBeenSet = true; m_upstreamRegistryUrl = value; }
|
||||
inline void SetUpstreamRegistryUrl(Aws::String&& value) { m_upstreamRegistryUrlHasBeenSet = true; m_upstreamRegistryUrl = std::move(value); }
|
||||
inline void SetUpstreamRegistryUrl(const char* value) { m_upstreamRegistryUrlHasBeenSet = true; m_upstreamRegistryUrl.assign(value); }
|
||||
inline CreatePullThroughCacheRuleRequest& WithUpstreamRegistryUrl(const Aws::String& value) { SetUpstreamRegistryUrl(value); return *this;}
|
||||
inline CreatePullThroughCacheRuleRequest& WithUpstreamRegistryUrl(Aws::String&& value) { SetUpstreamRegistryUrl(std::move(value)); return *this;}
|
||||
inline CreatePullThroughCacheRuleRequest& WithUpstreamRegistryUrl(const char* value) { SetUpstreamRegistryUrl(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The Amazon Web Services account ID associated with the registry to create the
|
||||
* pull through cache rule for. If you do not specify a registry, the default
|
||||
* registry is assumed.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRegistryId() const{ return m_registryId; }
|
||||
inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
|
||||
inline void SetRegistryId(const Aws::String& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
|
||||
inline void SetRegistryId(Aws::String&& value) { m_registryIdHasBeenSet = true; m_registryId = std::move(value); }
|
||||
inline void SetRegistryId(const char* value) { m_registryIdHasBeenSet = true; m_registryId.assign(value); }
|
||||
inline CreatePullThroughCacheRuleRequest& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
|
||||
inline CreatePullThroughCacheRuleRequest& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
|
||||
inline CreatePullThroughCacheRuleRequest& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The name of the upstream registry.</p>
|
||||
*/
|
||||
inline const UpstreamRegistry& GetUpstreamRegistry() const{ return m_upstreamRegistry; }
|
||||
inline bool UpstreamRegistryHasBeenSet() const { return m_upstreamRegistryHasBeenSet; }
|
||||
inline void SetUpstreamRegistry(const UpstreamRegistry& value) { m_upstreamRegistryHasBeenSet = true; m_upstreamRegistry = value; }
|
||||
inline void SetUpstreamRegistry(UpstreamRegistry&& value) { m_upstreamRegistryHasBeenSet = true; m_upstreamRegistry = std::move(value); }
|
||||
inline CreatePullThroughCacheRuleRequest& WithUpstreamRegistry(const UpstreamRegistry& value) { SetUpstreamRegistry(value); return *this;}
|
||||
inline CreatePullThroughCacheRuleRequest& WithUpstreamRegistry(UpstreamRegistry&& value) { SetUpstreamRegistry(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager
|
||||
* secret that identifies the credentials to authenticate to the upstream
|
||||
* registry.</p>
|
||||
*/
|
||||
inline const Aws::String& GetCredentialArn() const{ return m_credentialArn; }
|
||||
inline bool CredentialArnHasBeenSet() const { return m_credentialArnHasBeenSet; }
|
||||
inline void SetCredentialArn(const Aws::String& value) { m_credentialArnHasBeenSet = true; m_credentialArn = value; }
|
||||
inline void SetCredentialArn(Aws::String&& value) { m_credentialArnHasBeenSet = true; m_credentialArn = std::move(value); }
|
||||
inline void SetCredentialArn(const char* value) { m_credentialArnHasBeenSet = true; m_credentialArn.assign(value); }
|
||||
inline CreatePullThroughCacheRuleRequest& WithCredentialArn(const Aws::String& value) { SetCredentialArn(value); return *this;}
|
||||
inline CreatePullThroughCacheRuleRequest& WithCredentialArn(Aws::String&& value) { SetCredentialArn(std::move(value)); return *this;}
|
||||
inline CreatePullThroughCacheRuleRequest& WithCredentialArn(const char* value) { SetCredentialArn(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_ecrRepositoryPrefix;
|
||||
bool m_ecrRepositoryPrefixHasBeenSet = false;
|
||||
|
||||
Aws::String m_upstreamRegistryUrl;
|
||||
bool m_upstreamRegistryUrlHasBeenSet = false;
|
||||
|
||||
Aws::String m_registryId;
|
||||
bool m_registryIdHasBeenSet = false;
|
||||
|
||||
UpstreamRegistry m_upstreamRegistry;
|
||||
bool m_upstreamRegistryHasBeenSet = false;
|
||||
|
||||
Aws::String m_credentialArn;
|
||||
bool m_credentialArnHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,144 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/core/utils/DateTime.h>
|
||||
#include <aws/ecr/model/UpstreamRegistry.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
template<typename RESULT_TYPE>
|
||||
class AmazonWebServiceResult;
|
||||
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class CreatePullThroughCacheRuleResult
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API CreatePullThroughCacheRuleResult();
|
||||
AWS_ECR_API CreatePullThroughCacheRuleResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
AWS_ECR_API CreatePullThroughCacheRuleResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The Amazon ECR repository prefix associated with the pull through cache
|
||||
* rule.</p>
|
||||
*/
|
||||
inline const Aws::String& GetEcrRepositoryPrefix() const{ return m_ecrRepositoryPrefix; }
|
||||
inline void SetEcrRepositoryPrefix(const Aws::String& value) { m_ecrRepositoryPrefix = value; }
|
||||
inline void SetEcrRepositoryPrefix(Aws::String&& value) { m_ecrRepositoryPrefix = std::move(value); }
|
||||
inline void SetEcrRepositoryPrefix(const char* value) { m_ecrRepositoryPrefix.assign(value); }
|
||||
inline CreatePullThroughCacheRuleResult& WithEcrRepositoryPrefix(const Aws::String& value) { SetEcrRepositoryPrefix(value); return *this;}
|
||||
inline CreatePullThroughCacheRuleResult& WithEcrRepositoryPrefix(Aws::String&& value) { SetEcrRepositoryPrefix(std::move(value)); return *this;}
|
||||
inline CreatePullThroughCacheRuleResult& WithEcrRepositoryPrefix(const char* value) { SetEcrRepositoryPrefix(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The upstream registry URL associated with the pull through cache rule.</p>
|
||||
*/
|
||||
inline const Aws::String& GetUpstreamRegistryUrl() const{ return m_upstreamRegistryUrl; }
|
||||
inline void SetUpstreamRegistryUrl(const Aws::String& value) { m_upstreamRegistryUrl = value; }
|
||||
inline void SetUpstreamRegistryUrl(Aws::String&& value) { m_upstreamRegistryUrl = std::move(value); }
|
||||
inline void SetUpstreamRegistryUrl(const char* value) { m_upstreamRegistryUrl.assign(value); }
|
||||
inline CreatePullThroughCacheRuleResult& WithUpstreamRegistryUrl(const Aws::String& value) { SetUpstreamRegistryUrl(value); return *this;}
|
||||
inline CreatePullThroughCacheRuleResult& WithUpstreamRegistryUrl(Aws::String&& value) { SetUpstreamRegistryUrl(std::move(value)); return *this;}
|
||||
inline CreatePullThroughCacheRuleResult& WithUpstreamRegistryUrl(const char* value) { SetUpstreamRegistryUrl(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The date and time, in JavaScript date format, when the pull through cache
|
||||
* rule was created.</p>
|
||||
*/
|
||||
inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
|
||||
inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAt = value; }
|
||||
inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAt = std::move(value); }
|
||||
inline CreatePullThroughCacheRuleResult& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
|
||||
inline CreatePullThroughCacheRuleResult& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The registry ID associated with the request.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRegistryId() const{ return m_registryId; }
|
||||
inline void SetRegistryId(const Aws::String& value) { m_registryId = value; }
|
||||
inline void SetRegistryId(Aws::String&& value) { m_registryId = std::move(value); }
|
||||
inline void SetRegistryId(const char* value) { m_registryId.assign(value); }
|
||||
inline CreatePullThroughCacheRuleResult& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
|
||||
inline CreatePullThroughCacheRuleResult& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
|
||||
inline CreatePullThroughCacheRuleResult& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The name of the upstream registry associated with the pull through cache
|
||||
* rule.</p>
|
||||
*/
|
||||
inline const UpstreamRegistry& GetUpstreamRegistry() const{ return m_upstreamRegistry; }
|
||||
inline void SetUpstreamRegistry(const UpstreamRegistry& value) { m_upstreamRegistry = value; }
|
||||
inline void SetUpstreamRegistry(UpstreamRegistry&& value) { m_upstreamRegistry = std::move(value); }
|
||||
inline CreatePullThroughCacheRuleResult& WithUpstreamRegistry(const UpstreamRegistry& value) { SetUpstreamRegistry(value); return *this;}
|
||||
inline CreatePullThroughCacheRuleResult& WithUpstreamRegistry(UpstreamRegistry&& value) { SetUpstreamRegistry(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager
|
||||
* secret associated with the pull through cache rule.</p>
|
||||
*/
|
||||
inline const Aws::String& GetCredentialArn() const{ return m_credentialArn; }
|
||||
inline void SetCredentialArn(const Aws::String& value) { m_credentialArn = value; }
|
||||
inline void SetCredentialArn(Aws::String&& value) { m_credentialArn = std::move(value); }
|
||||
inline void SetCredentialArn(const char* value) { m_credentialArn.assign(value); }
|
||||
inline CreatePullThroughCacheRuleResult& WithCredentialArn(const Aws::String& value) { SetCredentialArn(value); return *this;}
|
||||
inline CreatePullThroughCacheRuleResult& WithCredentialArn(Aws::String&& value) { SetCredentialArn(std::move(value)); return *this;}
|
||||
inline CreatePullThroughCacheRuleResult& WithCredentialArn(const char* value) { SetCredentialArn(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetRequestId() const{ return m_requestId; }
|
||||
inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
|
||||
inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
|
||||
inline void SetRequestId(const char* value) { m_requestId.assign(value); }
|
||||
inline CreatePullThroughCacheRuleResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
|
||||
inline CreatePullThroughCacheRuleResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
|
||||
inline CreatePullThroughCacheRuleResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_ecrRepositoryPrefix;
|
||||
|
||||
Aws::String m_upstreamRegistryUrl;
|
||||
|
||||
Aws::Utils::DateTime m_createdAt;
|
||||
|
||||
Aws::String m_registryId;
|
||||
|
||||
UpstreamRegistry m_upstreamRegistry;
|
||||
|
||||
Aws::String m_credentialArn;
|
||||
|
||||
Aws::String m_requestId;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,223 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/ecr/ECRRequest.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/ecr/model/EncryptionConfigurationForRepositoryCreationTemplate.h>
|
||||
#include <aws/core/utils/memory/stl/AWSVector.h>
|
||||
#include <aws/ecr/model/ImageTagMutability.h>
|
||||
#include <aws/ecr/model/Tag.h>
|
||||
#include <aws/ecr/model/RCTAppliedFor.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
*/
|
||||
class CreateRepositoryCreationTemplateRequest : public ECRRequest
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API CreateRepositoryCreationTemplateRequest();
|
||||
|
||||
// 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 "CreateRepositoryCreationTemplate"; }
|
||||
|
||||
AWS_ECR_API Aws::String SerializePayload() const override;
|
||||
|
||||
AWS_ECR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The repository namespace prefix to associate with the template. All
|
||||
* repositories created using this namespace prefix will have the settings defined
|
||||
* in this template applied. For example, a prefix of <code>prod</code> would apply
|
||||
* to all repositories beginning with <code>prod/</code>. Similarly, a prefix of
|
||||
* <code>prod/team</code> would apply to all repositories beginning with
|
||||
* <code>prod/team/</code>.</p> <p>To apply a template to all repositories in your
|
||||
* registry that don't have an associated creation template, you can use
|
||||
* <code>ROOT</code> as the prefix.</p> <p>There is always an assumed
|
||||
* <code>/</code> applied to the end of the prefix. If you specify
|
||||
* <code>ecr-public</code> as the prefix, Amazon ECR treats that as
|
||||
* <code>ecr-public/</code>. When using a pull through cache rule, the repository
|
||||
* prefix you specify during rule creation is what you should specify as your
|
||||
* repository creation template prefix as well.</p>
|
||||
*/
|
||||
inline const Aws::String& GetPrefix() const{ return m_prefix; }
|
||||
inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
|
||||
inline void SetPrefix(const Aws::String& value) { m_prefixHasBeenSet = true; m_prefix = value; }
|
||||
inline void SetPrefix(Aws::String&& value) { m_prefixHasBeenSet = true; m_prefix = std::move(value); }
|
||||
inline void SetPrefix(const char* value) { m_prefixHasBeenSet = true; m_prefix.assign(value); }
|
||||
inline CreateRepositoryCreationTemplateRequest& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;}
|
||||
inline CreateRepositoryCreationTemplateRequest& WithPrefix(Aws::String&& value) { SetPrefix(std::move(value)); return *this;}
|
||||
inline CreateRepositoryCreationTemplateRequest& WithPrefix(const char* value) { SetPrefix(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>A description for the repository creation template.</p>
|
||||
*/
|
||||
inline const Aws::String& GetDescription() const{ return m_description; }
|
||||
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
|
||||
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
|
||||
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
|
||||
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
|
||||
inline CreateRepositoryCreationTemplateRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
|
||||
inline CreateRepositoryCreationTemplateRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
|
||||
inline CreateRepositoryCreationTemplateRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The encryption configuration to use for repositories created using the
|
||||
* template.</p>
|
||||
*/
|
||||
inline const EncryptionConfigurationForRepositoryCreationTemplate& GetEncryptionConfiguration() const{ return m_encryptionConfiguration; }
|
||||
inline bool EncryptionConfigurationHasBeenSet() const { return m_encryptionConfigurationHasBeenSet; }
|
||||
inline void SetEncryptionConfiguration(const EncryptionConfigurationForRepositoryCreationTemplate& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = value; }
|
||||
inline void SetEncryptionConfiguration(EncryptionConfigurationForRepositoryCreationTemplate&& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = std::move(value); }
|
||||
inline CreateRepositoryCreationTemplateRequest& WithEncryptionConfiguration(const EncryptionConfigurationForRepositoryCreationTemplate& value) { SetEncryptionConfiguration(value); return *this;}
|
||||
inline CreateRepositoryCreationTemplateRequest& WithEncryptionConfiguration(EncryptionConfigurationForRepositoryCreationTemplate&& value) { SetEncryptionConfiguration(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The metadata to apply to the repository to help you categorize and organize.
|
||||
* Each tag consists of a key and an optional value, both of which you define. Tag
|
||||
* keys can have a maximum character length of 128 characters, and tag values can
|
||||
* have a maximum length of 256 characters.</p>
|
||||
*/
|
||||
inline const Aws::Vector<Tag>& GetResourceTags() const{ return m_resourceTags; }
|
||||
inline bool ResourceTagsHasBeenSet() const { return m_resourceTagsHasBeenSet; }
|
||||
inline void SetResourceTags(const Aws::Vector<Tag>& value) { m_resourceTagsHasBeenSet = true; m_resourceTags = value; }
|
||||
inline void SetResourceTags(Aws::Vector<Tag>&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags = std::move(value); }
|
||||
inline CreateRepositoryCreationTemplateRequest& WithResourceTags(const Aws::Vector<Tag>& value) { SetResourceTags(value); return *this;}
|
||||
inline CreateRepositoryCreationTemplateRequest& WithResourceTags(Aws::Vector<Tag>&& value) { SetResourceTags(std::move(value)); return *this;}
|
||||
inline CreateRepositoryCreationTemplateRequest& AddResourceTags(const Tag& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.push_back(value); return *this; }
|
||||
inline CreateRepositoryCreationTemplateRequest& AddResourceTags(Tag&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.push_back(std::move(value)); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The tag mutability setting for the repository. If this parameter is omitted,
|
||||
* the default setting of <code>MUTABLE</code> will be used which will allow image
|
||||
* tags to be overwritten. If <code>IMMUTABLE</code> is specified, all image tags
|
||||
* within the repository will be immutable which will prevent them from being
|
||||
* overwritten.</p>
|
||||
*/
|
||||
inline const ImageTagMutability& GetImageTagMutability() const{ return m_imageTagMutability; }
|
||||
inline bool ImageTagMutabilityHasBeenSet() const { return m_imageTagMutabilityHasBeenSet; }
|
||||
inline void SetImageTagMutability(const ImageTagMutability& value) { m_imageTagMutabilityHasBeenSet = true; m_imageTagMutability = value; }
|
||||
inline void SetImageTagMutability(ImageTagMutability&& value) { m_imageTagMutabilityHasBeenSet = true; m_imageTagMutability = std::move(value); }
|
||||
inline CreateRepositoryCreationTemplateRequest& WithImageTagMutability(const ImageTagMutability& value) { SetImageTagMutability(value); return *this;}
|
||||
inline CreateRepositoryCreationTemplateRequest& WithImageTagMutability(ImageTagMutability&& value) { SetImageTagMutability(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The repository policy to apply to repositories created using the template. A
|
||||
* repository policy is a permissions policy associated with a repository to
|
||||
* control access permissions. </p>
|
||||
*/
|
||||
inline const Aws::String& GetRepositoryPolicy() const{ return m_repositoryPolicy; }
|
||||
inline bool RepositoryPolicyHasBeenSet() const { return m_repositoryPolicyHasBeenSet; }
|
||||
inline void SetRepositoryPolicy(const Aws::String& value) { m_repositoryPolicyHasBeenSet = true; m_repositoryPolicy = value; }
|
||||
inline void SetRepositoryPolicy(Aws::String&& value) { m_repositoryPolicyHasBeenSet = true; m_repositoryPolicy = std::move(value); }
|
||||
inline void SetRepositoryPolicy(const char* value) { m_repositoryPolicyHasBeenSet = true; m_repositoryPolicy.assign(value); }
|
||||
inline CreateRepositoryCreationTemplateRequest& WithRepositoryPolicy(const Aws::String& value) { SetRepositoryPolicy(value); return *this;}
|
||||
inline CreateRepositoryCreationTemplateRequest& WithRepositoryPolicy(Aws::String&& value) { SetRepositoryPolicy(std::move(value)); return *this;}
|
||||
inline CreateRepositoryCreationTemplateRequest& WithRepositoryPolicy(const char* value) { SetRepositoryPolicy(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The lifecycle policy to use for repositories created using the template.</p>
|
||||
*/
|
||||
inline const Aws::String& GetLifecyclePolicy() const{ return m_lifecyclePolicy; }
|
||||
inline bool LifecyclePolicyHasBeenSet() const { return m_lifecyclePolicyHasBeenSet; }
|
||||
inline void SetLifecyclePolicy(const Aws::String& value) { m_lifecyclePolicyHasBeenSet = true; m_lifecyclePolicy = value; }
|
||||
inline void SetLifecyclePolicy(Aws::String&& value) { m_lifecyclePolicyHasBeenSet = true; m_lifecyclePolicy = std::move(value); }
|
||||
inline void SetLifecyclePolicy(const char* value) { m_lifecyclePolicyHasBeenSet = true; m_lifecyclePolicy.assign(value); }
|
||||
inline CreateRepositoryCreationTemplateRequest& WithLifecyclePolicy(const Aws::String& value) { SetLifecyclePolicy(value); return *this;}
|
||||
inline CreateRepositoryCreationTemplateRequest& WithLifecyclePolicy(Aws::String&& value) { SetLifecyclePolicy(std::move(value)); return *this;}
|
||||
inline CreateRepositoryCreationTemplateRequest& WithLifecyclePolicy(const char* value) { SetLifecyclePolicy(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>A list of enumerable strings representing the Amazon ECR repository creation
|
||||
* scenarios that this template will apply towards. The two supported scenarios are
|
||||
* <code>PULL_THROUGH_CACHE</code> and <code>REPLICATION</code> </p>
|
||||
*/
|
||||
inline const Aws::Vector<RCTAppliedFor>& GetAppliedFor() const{ return m_appliedFor; }
|
||||
inline bool AppliedForHasBeenSet() const { return m_appliedForHasBeenSet; }
|
||||
inline void SetAppliedFor(const Aws::Vector<RCTAppliedFor>& value) { m_appliedForHasBeenSet = true; m_appliedFor = value; }
|
||||
inline void SetAppliedFor(Aws::Vector<RCTAppliedFor>&& value) { m_appliedForHasBeenSet = true; m_appliedFor = std::move(value); }
|
||||
inline CreateRepositoryCreationTemplateRequest& WithAppliedFor(const Aws::Vector<RCTAppliedFor>& value) { SetAppliedFor(value); return *this;}
|
||||
inline CreateRepositoryCreationTemplateRequest& WithAppliedFor(Aws::Vector<RCTAppliedFor>&& value) { SetAppliedFor(std::move(value)); return *this;}
|
||||
inline CreateRepositoryCreationTemplateRequest& AddAppliedFor(const RCTAppliedFor& value) { m_appliedForHasBeenSet = true; m_appliedFor.push_back(value); return *this; }
|
||||
inline CreateRepositoryCreationTemplateRequest& AddAppliedFor(RCTAppliedFor&& value) { m_appliedForHasBeenSet = true; m_appliedFor.push_back(std::move(value)); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The ARN of the role to be assumed by Amazon ECR. This role must be in the
|
||||
* same account as the registry that you are configuring. Amazon ECR will assume
|
||||
* your supplied role when the customRoleArn is specified. When this field isn't
|
||||
* specified, Amazon ECR will use the service-linked role for the repository
|
||||
* creation template.</p>
|
||||
*/
|
||||
inline const Aws::String& GetCustomRoleArn() const{ return m_customRoleArn; }
|
||||
inline bool CustomRoleArnHasBeenSet() const { return m_customRoleArnHasBeenSet; }
|
||||
inline void SetCustomRoleArn(const Aws::String& value) { m_customRoleArnHasBeenSet = true; m_customRoleArn = value; }
|
||||
inline void SetCustomRoleArn(Aws::String&& value) { m_customRoleArnHasBeenSet = true; m_customRoleArn = std::move(value); }
|
||||
inline void SetCustomRoleArn(const char* value) { m_customRoleArnHasBeenSet = true; m_customRoleArn.assign(value); }
|
||||
inline CreateRepositoryCreationTemplateRequest& WithCustomRoleArn(const Aws::String& value) { SetCustomRoleArn(value); return *this;}
|
||||
inline CreateRepositoryCreationTemplateRequest& WithCustomRoleArn(Aws::String&& value) { SetCustomRoleArn(std::move(value)); return *this;}
|
||||
inline CreateRepositoryCreationTemplateRequest& WithCustomRoleArn(const char* value) { SetCustomRoleArn(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_prefix;
|
||||
bool m_prefixHasBeenSet = false;
|
||||
|
||||
Aws::String m_description;
|
||||
bool m_descriptionHasBeenSet = false;
|
||||
|
||||
EncryptionConfigurationForRepositoryCreationTemplate m_encryptionConfiguration;
|
||||
bool m_encryptionConfigurationHasBeenSet = false;
|
||||
|
||||
Aws::Vector<Tag> m_resourceTags;
|
||||
bool m_resourceTagsHasBeenSet = false;
|
||||
|
||||
ImageTagMutability m_imageTagMutability;
|
||||
bool m_imageTagMutabilityHasBeenSet = false;
|
||||
|
||||
Aws::String m_repositoryPolicy;
|
||||
bool m_repositoryPolicyHasBeenSet = false;
|
||||
|
||||
Aws::String m_lifecyclePolicy;
|
||||
bool m_lifecyclePolicyHasBeenSet = false;
|
||||
|
||||
Aws::Vector<RCTAppliedFor> m_appliedFor;
|
||||
bool m_appliedForHasBeenSet = false;
|
||||
|
||||
Aws::String m_customRoleArn;
|
||||
bool m_customRoleArnHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,82 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/ecr/model/RepositoryCreationTemplate.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
template<typename RESULT_TYPE>
|
||||
class AmazonWebServiceResult;
|
||||
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class CreateRepositoryCreationTemplateResult
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API CreateRepositoryCreationTemplateResult();
|
||||
AWS_ECR_API CreateRepositoryCreationTemplateResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
AWS_ECR_API CreateRepositoryCreationTemplateResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The registry ID associated with the request.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRegistryId() const{ return m_registryId; }
|
||||
inline void SetRegistryId(const Aws::String& value) { m_registryId = value; }
|
||||
inline void SetRegistryId(Aws::String&& value) { m_registryId = std::move(value); }
|
||||
inline void SetRegistryId(const char* value) { m_registryId.assign(value); }
|
||||
inline CreateRepositoryCreationTemplateResult& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
|
||||
inline CreateRepositoryCreationTemplateResult& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
|
||||
inline CreateRepositoryCreationTemplateResult& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The details of the repository creation template associated with the
|
||||
* request.</p>
|
||||
*/
|
||||
inline const RepositoryCreationTemplate& GetRepositoryCreationTemplate() const{ return m_repositoryCreationTemplate; }
|
||||
inline void SetRepositoryCreationTemplate(const RepositoryCreationTemplate& value) { m_repositoryCreationTemplate = value; }
|
||||
inline void SetRepositoryCreationTemplate(RepositoryCreationTemplate&& value) { m_repositoryCreationTemplate = std::move(value); }
|
||||
inline CreateRepositoryCreationTemplateResult& WithRepositoryCreationTemplate(const RepositoryCreationTemplate& value) { SetRepositoryCreationTemplate(value); return *this;}
|
||||
inline CreateRepositoryCreationTemplateResult& WithRepositoryCreationTemplate(RepositoryCreationTemplate&& value) { SetRepositoryCreationTemplate(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetRequestId() const{ return m_requestId; }
|
||||
inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
|
||||
inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
|
||||
inline void SetRequestId(const char* value) { m_requestId.assign(value); }
|
||||
inline CreateRepositoryCreationTemplateResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
|
||||
inline CreateRepositoryCreationTemplateResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
|
||||
inline CreateRepositoryCreationTemplateResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_registryId;
|
||||
|
||||
RepositoryCreationTemplate m_repositoryCreationTemplate;
|
||||
|
||||
Aws::String m_requestId;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,159 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/ecr/ECRRequest.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/core/utils/memory/stl/AWSVector.h>
|
||||
#include <aws/ecr/model/ImageTagMutability.h>
|
||||
#include <aws/ecr/model/ImageScanningConfiguration.h>
|
||||
#include <aws/ecr/model/EncryptionConfiguration.h>
|
||||
#include <aws/ecr/model/Tag.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
*/
|
||||
class CreateRepositoryRequest : public ECRRequest
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API CreateRepositoryRequest();
|
||||
|
||||
// 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 "CreateRepository"; }
|
||||
|
||||
AWS_ECR_API Aws::String SerializePayload() const override;
|
||||
|
||||
AWS_ECR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The Amazon Web Services account ID associated with the registry to create the
|
||||
* repository. If you do not specify a registry, the default registry is
|
||||
* assumed.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRegistryId() const{ return m_registryId; }
|
||||
inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
|
||||
inline void SetRegistryId(const Aws::String& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
|
||||
inline void SetRegistryId(Aws::String&& value) { m_registryIdHasBeenSet = true; m_registryId = std::move(value); }
|
||||
inline void SetRegistryId(const char* value) { m_registryIdHasBeenSet = true; m_registryId.assign(value); }
|
||||
inline CreateRepositoryRequest& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
|
||||
inline CreateRepositoryRequest& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
|
||||
inline CreateRepositoryRequest& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The name to use for the repository. The repository name may be specified on
|
||||
* its own (such as <code>nginx-web-app</code>) or it can be prepended with a
|
||||
* namespace to group the repository into a category (such as
|
||||
* <code>project-a/nginx-web-app</code>).</p> <p>The repository name must start
|
||||
* with a letter and can only contain lowercase letters, numbers, hyphens,
|
||||
* underscores, and forward slashes.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
|
||||
inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
|
||||
inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
|
||||
inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
|
||||
inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
|
||||
inline CreateRepositoryRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
|
||||
inline CreateRepositoryRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
|
||||
inline CreateRepositoryRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The metadata that you apply to the repository to help you categorize and
|
||||
* organize them. Each tag consists of a key and an optional value, both of which
|
||||
* you define. Tag keys can have a maximum character length of 128 characters, and
|
||||
* tag values can have a maximum length of 256 characters.</p>
|
||||
*/
|
||||
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
|
||||
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
|
||||
inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
|
||||
inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
|
||||
inline CreateRepositoryRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
|
||||
inline CreateRepositoryRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
|
||||
inline CreateRepositoryRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
|
||||
inline CreateRepositoryRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The tag mutability setting for the repository. If this parameter is omitted,
|
||||
* the default setting of <code>MUTABLE</code> will be used which will allow image
|
||||
* tags to be overwritten. If <code>IMMUTABLE</code> is specified, all image tags
|
||||
* within the repository will be immutable which will prevent them from being
|
||||
* overwritten.</p>
|
||||
*/
|
||||
inline const ImageTagMutability& GetImageTagMutability() const{ return m_imageTagMutability; }
|
||||
inline bool ImageTagMutabilityHasBeenSet() const { return m_imageTagMutabilityHasBeenSet; }
|
||||
inline void SetImageTagMutability(const ImageTagMutability& value) { m_imageTagMutabilityHasBeenSet = true; m_imageTagMutability = value; }
|
||||
inline void SetImageTagMutability(ImageTagMutability&& value) { m_imageTagMutabilityHasBeenSet = true; m_imageTagMutability = std::move(value); }
|
||||
inline CreateRepositoryRequest& WithImageTagMutability(const ImageTagMutability& value) { SetImageTagMutability(value); return *this;}
|
||||
inline CreateRepositoryRequest& WithImageTagMutability(ImageTagMutability&& value) { SetImageTagMutability(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The image scanning configuration for the repository. This determines whether
|
||||
* images are scanned for known vulnerabilities after being pushed to the
|
||||
* repository.</p>
|
||||
*/
|
||||
inline const ImageScanningConfiguration& GetImageScanningConfiguration() const{ return m_imageScanningConfiguration; }
|
||||
inline bool ImageScanningConfigurationHasBeenSet() const { return m_imageScanningConfigurationHasBeenSet; }
|
||||
inline void SetImageScanningConfiguration(const ImageScanningConfiguration& value) { m_imageScanningConfigurationHasBeenSet = true; m_imageScanningConfiguration = value; }
|
||||
inline void SetImageScanningConfiguration(ImageScanningConfiguration&& value) { m_imageScanningConfigurationHasBeenSet = true; m_imageScanningConfiguration = std::move(value); }
|
||||
inline CreateRepositoryRequest& WithImageScanningConfiguration(const ImageScanningConfiguration& value) { SetImageScanningConfiguration(value); return *this;}
|
||||
inline CreateRepositoryRequest& WithImageScanningConfiguration(ImageScanningConfiguration&& value) { SetImageScanningConfiguration(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The encryption configuration for the repository. This determines how the
|
||||
* contents of your repository are encrypted at rest.</p>
|
||||
*/
|
||||
inline const EncryptionConfiguration& GetEncryptionConfiguration() const{ return m_encryptionConfiguration; }
|
||||
inline bool EncryptionConfigurationHasBeenSet() const { return m_encryptionConfigurationHasBeenSet; }
|
||||
inline void SetEncryptionConfiguration(const EncryptionConfiguration& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = value; }
|
||||
inline void SetEncryptionConfiguration(EncryptionConfiguration&& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = std::move(value); }
|
||||
inline CreateRepositoryRequest& WithEncryptionConfiguration(const EncryptionConfiguration& value) { SetEncryptionConfiguration(value); return *this;}
|
||||
inline CreateRepositoryRequest& WithEncryptionConfiguration(EncryptionConfiguration&& value) { SetEncryptionConfiguration(std::move(value)); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_registryId;
|
||||
bool m_registryIdHasBeenSet = false;
|
||||
|
||||
Aws::String m_repositoryName;
|
||||
bool m_repositoryNameHasBeenSet = false;
|
||||
|
||||
Aws::Vector<Tag> m_tags;
|
||||
bool m_tagsHasBeenSet = false;
|
||||
|
||||
ImageTagMutability m_imageTagMutability;
|
||||
bool m_imageTagMutabilityHasBeenSet = false;
|
||||
|
||||
ImageScanningConfiguration m_imageScanningConfiguration;
|
||||
bool m_imageScanningConfigurationHasBeenSet = false;
|
||||
|
||||
EncryptionConfiguration m_encryptionConfiguration;
|
||||
bool m_encryptionConfigurationHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,66 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/ecr/model/Repository.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
template<typename RESULT_TYPE>
|
||||
class AmazonWebServiceResult;
|
||||
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class CreateRepositoryResult
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API CreateRepositoryResult();
|
||||
AWS_ECR_API CreateRepositoryResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
AWS_ECR_API CreateRepositoryResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The repository that was created.</p>
|
||||
*/
|
||||
inline const Repository& GetRepository() const{ return m_repository; }
|
||||
inline void SetRepository(const Repository& value) { m_repository = value; }
|
||||
inline void SetRepository(Repository&& value) { m_repository = std::move(value); }
|
||||
inline CreateRepositoryResult& WithRepository(const Repository& value) { SetRepository(value); return *this;}
|
||||
inline CreateRepositoryResult& WithRepository(Repository&& value) { SetRepository(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetRequestId() const{ return m_requestId; }
|
||||
inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
|
||||
inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
|
||||
inline void SetRequestId(const char* value) { m_requestId.assign(value); }
|
||||
inline CreateRepositoryResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
|
||||
inline CreateRepositoryResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
|
||||
inline CreateRepositoryResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Repository m_repository;
|
||||
|
||||
Aws::String m_requestId;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,108 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p>The CVSS score for a finding.</p><p><h3>See Also:</h3> <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/CvssScore">AWS API
|
||||
* Reference</a></p>
|
||||
*/
|
||||
class CvssScore
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API CvssScore();
|
||||
AWS_ECR_API CvssScore(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_ECR_API CvssScore& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The base CVSS score used for the finding.</p>
|
||||
*/
|
||||
inline double GetBaseScore() const{ return m_baseScore; }
|
||||
inline bool BaseScoreHasBeenSet() const { return m_baseScoreHasBeenSet; }
|
||||
inline void SetBaseScore(double value) { m_baseScoreHasBeenSet = true; m_baseScore = value; }
|
||||
inline CvssScore& WithBaseScore(double value) { SetBaseScore(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The vector string of the CVSS score.</p>
|
||||
*/
|
||||
inline const Aws::String& GetScoringVector() const{ return m_scoringVector; }
|
||||
inline bool ScoringVectorHasBeenSet() const { return m_scoringVectorHasBeenSet; }
|
||||
inline void SetScoringVector(const Aws::String& value) { m_scoringVectorHasBeenSet = true; m_scoringVector = value; }
|
||||
inline void SetScoringVector(Aws::String&& value) { m_scoringVectorHasBeenSet = true; m_scoringVector = std::move(value); }
|
||||
inline void SetScoringVector(const char* value) { m_scoringVectorHasBeenSet = true; m_scoringVector.assign(value); }
|
||||
inline CvssScore& WithScoringVector(const Aws::String& value) { SetScoringVector(value); return *this;}
|
||||
inline CvssScore& WithScoringVector(Aws::String&& value) { SetScoringVector(std::move(value)); return *this;}
|
||||
inline CvssScore& WithScoringVector(const char* value) { SetScoringVector(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The source of the CVSS score.</p>
|
||||
*/
|
||||
inline const Aws::String& GetSource() const{ return m_source; }
|
||||
inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
|
||||
inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; }
|
||||
inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
|
||||
inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); }
|
||||
inline CvssScore& WithSource(const Aws::String& value) { SetSource(value); return *this;}
|
||||
inline CvssScore& WithSource(Aws::String&& value) { SetSource(std::move(value)); return *this;}
|
||||
inline CvssScore& WithSource(const char* value) { SetSource(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The version of CVSS used for the score.</p>
|
||||
*/
|
||||
inline const Aws::String& GetVersion() const{ return m_version; }
|
||||
inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
|
||||
inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
|
||||
inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
|
||||
inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
|
||||
inline CvssScore& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
|
||||
inline CvssScore& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
|
||||
inline CvssScore& WithVersion(const char* value) { SetVersion(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
double m_baseScore;
|
||||
bool m_baseScoreHasBeenSet = false;
|
||||
|
||||
Aws::String m_scoringVector;
|
||||
bool m_scoringVectorHasBeenSet = false;
|
||||
|
||||
Aws::String m_source;
|
||||
bool m_sourceHasBeenSet = false;
|
||||
|
||||
Aws::String m_version;
|
||||
bool m_versionHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,79 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p>Details on adjustments Amazon Inspector made to the CVSS score for a
|
||||
* finding.</p><p><h3>See Also:</h3> <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/CvssScoreAdjustment">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class CvssScoreAdjustment
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API CvssScoreAdjustment();
|
||||
AWS_ECR_API CvssScoreAdjustment(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_ECR_API CvssScoreAdjustment& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The metric used to adjust the CVSS score.</p>
|
||||
*/
|
||||
inline const Aws::String& GetMetric() const{ return m_metric; }
|
||||
inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; }
|
||||
inline void SetMetric(const Aws::String& value) { m_metricHasBeenSet = true; m_metric = value; }
|
||||
inline void SetMetric(Aws::String&& value) { m_metricHasBeenSet = true; m_metric = std::move(value); }
|
||||
inline void SetMetric(const char* value) { m_metricHasBeenSet = true; m_metric.assign(value); }
|
||||
inline CvssScoreAdjustment& WithMetric(const Aws::String& value) { SetMetric(value); return *this;}
|
||||
inline CvssScoreAdjustment& WithMetric(Aws::String&& value) { SetMetric(std::move(value)); return *this;}
|
||||
inline CvssScoreAdjustment& WithMetric(const char* value) { SetMetric(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The reason the CVSS score has been adjustment.</p>
|
||||
*/
|
||||
inline const Aws::String& GetReason() const{ return m_reason; }
|
||||
inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
|
||||
inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
|
||||
inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
|
||||
inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
|
||||
inline CvssScoreAdjustment& WithReason(const Aws::String& value) { SetReason(value); return *this;}
|
||||
inline CvssScoreAdjustment& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
|
||||
inline CvssScoreAdjustment& WithReason(const char* value) { SetReason(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_metric;
|
||||
bool m_metricHasBeenSet = false;
|
||||
|
||||
Aws::String m_reason;
|
||||
bool m_reasonHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,128 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSVector.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/ecr/model/CvssScoreAdjustment.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p>Information about the CVSS score.</p><p><h3>See Also:</h3> <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/CvssScoreDetails">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class CvssScoreDetails
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API CvssScoreDetails();
|
||||
AWS_ECR_API CvssScoreDetails(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_ECR_API CvssScoreDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>An object that contains details about adjustment Amazon Inspector made to the
|
||||
* CVSS score.</p>
|
||||
*/
|
||||
inline const Aws::Vector<CvssScoreAdjustment>& GetAdjustments() const{ return m_adjustments; }
|
||||
inline bool AdjustmentsHasBeenSet() const { return m_adjustmentsHasBeenSet; }
|
||||
inline void SetAdjustments(const Aws::Vector<CvssScoreAdjustment>& value) { m_adjustmentsHasBeenSet = true; m_adjustments = value; }
|
||||
inline void SetAdjustments(Aws::Vector<CvssScoreAdjustment>&& value) { m_adjustmentsHasBeenSet = true; m_adjustments = std::move(value); }
|
||||
inline CvssScoreDetails& WithAdjustments(const Aws::Vector<CvssScoreAdjustment>& value) { SetAdjustments(value); return *this;}
|
||||
inline CvssScoreDetails& WithAdjustments(Aws::Vector<CvssScoreAdjustment>&& value) { SetAdjustments(std::move(value)); return *this;}
|
||||
inline CvssScoreDetails& AddAdjustments(const CvssScoreAdjustment& value) { m_adjustmentsHasBeenSet = true; m_adjustments.push_back(value); return *this; }
|
||||
inline CvssScoreDetails& AddAdjustments(CvssScoreAdjustment&& value) { m_adjustmentsHasBeenSet = true; m_adjustments.push_back(std::move(value)); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The CVSS score.</p>
|
||||
*/
|
||||
inline double GetScore() const{ return m_score; }
|
||||
inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
|
||||
inline void SetScore(double value) { m_scoreHasBeenSet = true; m_score = value; }
|
||||
inline CvssScoreDetails& WithScore(double value) { SetScore(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The source for the CVSS score.</p>
|
||||
*/
|
||||
inline const Aws::String& GetScoreSource() const{ return m_scoreSource; }
|
||||
inline bool ScoreSourceHasBeenSet() const { return m_scoreSourceHasBeenSet; }
|
||||
inline void SetScoreSource(const Aws::String& value) { m_scoreSourceHasBeenSet = true; m_scoreSource = value; }
|
||||
inline void SetScoreSource(Aws::String&& value) { m_scoreSourceHasBeenSet = true; m_scoreSource = std::move(value); }
|
||||
inline void SetScoreSource(const char* value) { m_scoreSourceHasBeenSet = true; m_scoreSource.assign(value); }
|
||||
inline CvssScoreDetails& WithScoreSource(const Aws::String& value) { SetScoreSource(value); return *this;}
|
||||
inline CvssScoreDetails& WithScoreSource(Aws::String&& value) { SetScoreSource(std::move(value)); return *this;}
|
||||
inline CvssScoreDetails& WithScoreSource(const char* value) { SetScoreSource(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The vector for the CVSS score.</p>
|
||||
*/
|
||||
inline const Aws::String& GetScoringVector() const{ return m_scoringVector; }
|
||||
inline bool ScoringVectorHasBeenSet() const { return m_scoringVectorHasBeenSet; }
|
||||
inline void SetScoringVector(const Aws::String& value) { m_scoringVectorHasBeenSet = true; m_scoringVector = value; }
|
||||
inline void SetScoringVector(Aws::String&& value) { m_scoringVectorHasBeenSet = true; m_scoringVector = std::move(value); }
|
||||
inline void SetScoringVector(const char* value) { m_scoringVectorHasBeenSet = true; m_scoringVector.assign(value); }
|
||||
inline CvssScoreDetails& WithScoringVector(const Aws::String& value) { SetScoringVector(value); return *this;}
|
||||
inline CvssScoreDetails& WithScoringVector(Aws::String&& value) { SetScoringVector(std::move(value)); return *this;}
|
||||
inline CvssScoreDetails& WithScoringVector(const char* value) { SetScoringVector(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The CVSS version used in scoring.</p>
|
||||
*/
|
||||
inline const Aws::String& GetVersion() const{ return m_version; }
|
||||
inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
|
||||
inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
|
||||
inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
|
||||
inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
|
||||
inline CvssScoreDetails& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
|
||||
inline CvssScoreDetails& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
|
||||
inline CvssScoreDetails& WithVersion(const char* value) { SetVersion(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::Vector<CvssScoreAdjustment> m_adjustments;
|
||||
bool m_adjustmentsHasBeenSet = false;
|
||||
|
||||
double m_score;
|
||||
bool m_scoreHasBeenSet = false;
|
||||
|
||||
Aws::String m_scoreSource;
|
||||
bool m_scoreSourceHasBeenSet = false;
|
||||
|
||||
Aws::String m_scoringVector;
|
||||
bool m_scoringVectorHasBeenSet = false;
|
||||
|
||||
Aws::String m_version;
|
||||
bool m_versionHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,77 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/ecr/ECRRequest.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
*/
|
||||
class DeleteLifecyclePolicyRequest : public ECRRequest
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API DeleteLifecyclePolicyRequest();
|
||||
|
||||
// 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 "DeleteLifecyclePolicy"; }
|
||||
|
||||
AWS_ECR_API Aws::String SerializePayload() const override;
|
||||
|
||||
AWS_ECR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The Amazon Web Services account ID associated with the registry that contains
|
||||
* the repository. If you do not specify a registry, the default registry is
|
||||
* assumed.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRegistryId() const{ return m_registryId; }
|
||||
inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
|
||||
inline void SetRegistryId(const Aws::String& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
|
||||
inline void SetRegistryId(Aws::String&& value) { m_registryIdHasBeenSet = true; m_registryId = std::move(value); }
|
||||
inline void SetRegistryId(const char* value) { m_registryIdHasBeenSet = true; m_registryId.assign(value); }
|
||||
inline DeleteLifecyclePolicyRequest& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
|
||||
inline DeleteLifecyclePolicyRequest& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
|
||||
inline DeleteLifecyclePolicyRequest& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The name of the repository.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
|
||||
inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
|
||||
inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
|
||||
inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
|
||||
inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
|
||||
inline DeleteLifecyclePolicyRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
|
||||
inline DeleteLifecyclePolicyRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
|
||||
inline DeleteLifecyclePolicyRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_registryId;
|
||||
bool m_registryIdHasBeenSet = false;
|
||||
|
||||
Aws::String m_repositoryName;
|
||||
bool m_repositoryNameHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,111 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/core/utils/DateTime.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
template<typename RESULT_TYPE>
|
||||
class AmazonWebServiceResult;
|
||||
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class DeleteLifecyclePolicyResult
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API DeleteLifecyclePolicyResult();
|
||||
AWS_ECR_API DeleteLifecyclePolicyResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
AWS_ECR_API DeleteLifecyclePolicyResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The registry ID associated with the request.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRegistryId() const{ return m_registryId; }
|
||||
inline void SetRegistryId(const Aws::String& value) { m_registryId = value; }
|
||||
inline void SetRegistryId(Aws::String&& value) { m_registryId = std::move(value); }
|
||||
inline void SetRegistryId(const char* value) { m_registryId.assign(value); }
|
||||
inline DeleteLifecyclePolicyResult& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
|
||||
inline DeleteLifecyclePolicyResult& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
|
||||
inline DeleteLifecyclePolicyResult& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The repository name associated with the request.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
|
||||
inline void SetRepositoryName(const Aws::String& value) { m_repositoryName = value; }
|
||||
inline void SetRepositoryName(Aws::String&& value) { m_repositoryName = std::move(value); }
|
||||
inline void SetRepositoryName(const char* value) { m_repositoryName.assign(value); }
|
||||
inline DeleteLifecyclePolicyResult& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
|
||||
inline DeleteLifecyclePolicyResult& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
|
||||
inline DeleteLifecyclePolicyResult& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The JSON lifecycle policy text.</p>
|
||||
*/
|
||||
inline const Aws::String& GetLifecyclePolicyText() const{ return m_lifecyclePolicyText; }
|
||||
inline void SetLifecyclePolicyText(const Aws::String& value) { m_lifecyclePolicyText = value; }
|
||||
inline void SetLifecyclePolicyText(Aws::String&& value) { m_lifecyclePolicyText = std::move(value); }
|
||||
inline void SetLifecyclePolicyText(const char* value) { m_lifecyclePolicyText.assign(value); }
|
||||
inline DeleteLifecyclePolicyResult& WithLifecyclePolicyText(const Aws::String& value) { SetLifecyclePolicyText(value); return *this;}
|
||||
inline DeleteLifecyclePolicyResult& WithLifecyclePolicyText(Aws::String&& value) { SetLifecyclePolicyText(std::move(value)); return *this;}
|
||||
inline DeleteLifecyclePolicyResult& WithLifecyclePolicyText(const char* value) { SetLifecyclePolicyText(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The time stamp of the last time that the lifecycle policy was run.</p>
|
||||
*/
|
||||
inline const Aws::Utils::DateTime& GetLastEvaluatedAt() const{ return m_lastEvaluatedAt; }
|
||||
inline void SetLastEvaluatedAt(const Aws::Utils::DateTime& value) { m_lastEvaluatedAt = value; }
|
||||
inline void SetLastEvaluatedAt(Aws::Utils::DateTime&& value) { m_lastEvaluatedAt = std::move(value); }
|
||||
inline DeleteLifecyclePolicyResult& WithLastEvaluatedAt(const Aws::Utils::DateTime& value) { SetLastEvaluatedAt(value); return *this;}
|
||||
inline DeleteLifecyclePolicyResult& WithLastEvaluatedAt(Aws::Utils::DateTime&& value) { SetLastEvaluatedAt(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetRequestId() const{ return m_requestId; }
|
||||
inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
|
||||
inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
|
||||
inline void SetRequestId(const char* value) { m_requestId.assign(value); }
|
||||
inline DeleteLifecyclePolicyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
|
||||
inline DeleteLifecyclePolicyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
|
||||
inline DeleteLifecyclePolicyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_registryId;
|
||||
|
||||
Aws::String m_repositoryName;
|
||||
|
||||
Aws::String m_lifecyclePolicyText;
|
||||
|
||||
Aws::Utils::DateTime m_lastEvaluatedAt;
|
||||
|
||||
Aws::String m_requestId;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,78 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/ecr/ECRRequest.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
*/
|
||||
class DeletePullThroughCacheRuleRequest : public ECRRequest
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API DeletePullThroughCacheRuleRequest();
|
||||
|
||||
// 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 "DeletePullThroughCacheRule"; }
|
||||
|
||||
AWS_ECR_API Aws::String SerializePayload() const override;
|
||||
|
||||
AWS_ECR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The Amazon ECR repository prefix associated with the pull through cache rule
|
||||
* to delete.</p>
|
||||
*/
|
||||
inline const Aws::String& GetEcrRepositoryPrefix() const{ return m_ecrRepositoryPrefix; }
|
||||
inline bool EcrRepositoryPrefixHasBeenSet() const { return m_ecrRepositoryPrefixHasBeenSet; }
|
||||
inline void SetEcrRepositoryPrefix(const Aws::String& value) { m_ecrRepositoryPrefixHasBeenSet = true; m_ecrRepositoryPrefix = value; }
|
||||
inline void SetEcrRepositoryPrefix(Aws::String&& value) { m_ecrRepositoryPrefixHasBeenSet = true; m_ecrRepositoryPrefix = std::move(value); }
|
||||
inline void SetEcrRepositoryPrefix(const char* value) { m_ecrRepositoryPrefixHasBeenSet = true; m_ecrRepositoryPrefix.assign(value); }
|
||||
inline DeletePullThroughCacheRuleRequest& WithEcrRepositoryPrefix(const Aws::String& value) { SetEcrRepositoryPrefix(value); return *this;}
|
||||
inline DeletePullThroughCacheRuleRequest& WithEcrRepositoryPrefix(Aws::String&& value) { SetEcrRepositoryPrefix(std::move(value)); return *this;}
|
||||
inline DeletePullThroughCacheRuleRequest& WithEcrRepositoryPrefix(const char* value) { SetEcrRepositoryPrefix(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The Amazon Web Services account ID associated with the registry that contains
|
||||
* the pull through cache rule. If you do not specify a registry, the default
|
||||
* registry is assumed.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRegistryId() const{ return m_registryId; }
|
||||
inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
|
||||
inline void SetRegistryId(const Aws::String& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
|
||||
inline void SetRegistryId(Aws::String&& value) { m_registryIdHasBeenSet = true; m_registryId = std::move(value); }
|
||||
inline void SetRegistryId(const char* value) { m_registryIdHasBeenSet = true; m_registryId.assign(value); }
|
||||
inline DeletePullThroughCacheRuleRequest& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
|
||||
inline DeletePullThroughCacheRuleRequest& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
|
||||
inline DeletePullThroughCacheRuleRequest& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_ecrRepositoryPrefix;
|
||||
bool m_ecrRepositoryPrefixHasBeenSet = false;
|
||||
|
||||
Aws::String m_registryId;
|
||||
bool m_registryIdHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,127 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/core/utils/DateTime.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
template<typename RESULT_TYPE>
|
||||
class AmazonWebServiceResult;
|
||||
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class DeletePullThroughCacheRuleResult
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API DeletePullThroughCacheRuleResult();
|
||||
AWS_ECR_API DeletePullThroughCacheRuleResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
AWS_ECR_API DeletePullThroughCacheRuleResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The Amazon ECR repository prefix associated with the request.</p>
|
||||
*/
|
||||
inline const Aws::String& GetEcrRepositoryPrefix() const{ return m_ecrRepositoryPrefix; }
|
||||
inline void SetEcrRepositoryPrefix(const Aws::String& value) { m_ecrRepositoryPrefix = value; }
|
||||
inline void SetEcrRepositoryPrefix(Aws::String&& value) { m_ecrRepositoryPrefix = std::move(value); }
|
||||
inline void SetEcrRepositoryPrefix(const char* value) { m_ecrRepositoryPrefix.assign(value); }
|
||||
inline DeletePullThroughCacheRuleResult& WithEcrRepositoryPrefix(const Aws::String& value) { SetEcrRepositoryPrefix(value); return *this;}
|
||||
inline DeletePullThroughCacheRuleResult& WithEcrRepositoryPrefix(Aws::String&& value) { SetEcrRepositoryPrefix(std::move(value)); return *this;}
|
||||
inline DeletePullThroughCacheRuleResult& WithEcrRepositoryPrefix(const char* value) { SetEcrRepositoryPrefix(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The upstream registry URL associated with the pull through cache rule.</p>
|
||||
*/
|
||||
inline const Aws::String& GetUpstreamRegistryUrl() const{ return m_upstreamRegistryUrl; }
|
||||
inline void SetUpstreamRegistryUrl(const Aws::String& value) { m_upstreamRegistryUrl = value; }
|
||||
inline void SetUpstreamRegistryUrl(Aws::String&& value) { m_upstreamRegistryUrl = std::move(value); }
|
||||
inline void SetUpstreamRegistryUrl(const char* value) { m_upstreamRegistryUrl.assign(value); }
|
||||
inline DeletePullThroughCacheRuleResult& WithUpstreamRegistryUrl(const Aws::String& value) { SetUpstreamRegistryUrl(value); return *this;}
|
||||
inline DeletePullThroughCacheRuleResult& WithUpstreamRegistryUrl(Aws::String&& value) { SetUpstreamRegistryUrl(std::move(value)); return *this;}
|
||||
inline DeletePullThroughCacheRuleResult& WithUpstreamRegistryUrl(const char* value) { SetUpstreamRegistryUrl(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The timestamp associated with the pull through cache rule.</p>
|
||||
*/
|
||||
inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
|
||||
inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAt = value; }
|
||||
inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAt = std::move(value); }
|
||||
inline DeletePullThroughCacheRuleResult& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
|
||||
inline DeletePullThroughCacheRuleResult& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The registry ID associated with the request.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRegistryId() const{ return m_registryId; }
|
||||
inline void SetRegistryId(const Aws::String& value) { m_registryId = value; }
|
||||
inline void SetRegistryId(Aws::String&& value) { m_registryId = std::move(value); }
|
||||
inline void SetRegistryId(const char* value) { m_registryId.assign(value); }
|
||||
inline DeletePullThroughCacheRuleResult& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
|
||||
inline DeletePullThroughCacheRuleResult& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
|
||||
inline DeletePullThroughCacheRuleResult& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager
|
||||
* secret associated with the pull through cache rule.</p>
|
||||
*/
|
||||
inline const Aws::String& GetCredentialArn() const{ return m_credentialArn; }
|
||||
inline void SetCredentialArn(const Aws::String& value) { m_credentialArn = value; }
|
||||
inline void SetCredentialArn(Aws::String&& value) { m_credentialArn = std::move(value); }
|
||||
inline void SetCredentialArn(const char* value) { m_credentialArn.assign(value); }
|
||||
inline DeletePullThroughCacheRuleResult& WithCredentialArn(const Aws::String& value) { SetCredentialArn(value); return *this;}
|
||||
inline DeletePullThroughCacheRuleResult& WithCredentialArn(Aws::String&& value) { SetCredentialArn(std::move(value)); return *this;}
|
||||
inline DeletePullThroughCacheRuleResult& WithCredentialArn(const char* value) { SetCredentialArn(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetRequestId() const{ return m_requestId; }
|
||||
inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
|
||||
inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
|
||||
inline void SetRequestId(const char* value) { m_requestId.assign(value); }
|
||||
inline DeletePullThroughCacheRuleResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
|
||||
inline DeletePullThroughCacheRuleResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
|
||||
inline DeletePullThroughCacheRuleResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_ecrRepositoryPrefix;
|
||||
|
||||
Aws::String m_upstreamRegistryUrl;
|
||||
|
||||
Aws::Utils::DateTime m_createdAt;
|
||||
|
||||
Aws::String m_registryId;
|
||||
|
||||
Aws::String m_credentialArn;
|
||||
|
||||
Aws::String m_requestId;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,38 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/ecr/ECRRequest.h>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
*/
|
||||
class DeleteRegistryPolicyRequest : public ECRRequest
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API DeleteRegistryPolicyRequest();
|
||||
|
||||
// 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 "DeleteRegistryPolicy"; }
|
||||
|
||||
AWS_ECR_API Aws::String SerializePayload() const override;
|
||||
|
||||
AWS_ECR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
|
||||
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,82 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
template<typename RESULT_TYPE>
|
||||
class AmazonWebServiceResult;
|
||||
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class DeleteRegistryPolicyResult
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API DeleteRegistryPolicyResult();
|
||||
AWS_ECR_API DeleteRegistryPolicyResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
AWS_ECR_API DeleteRegistryPolicyResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The registry ID associated with the request.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRegistryId() const{ return m_registryId; }
|
||||
inline void SetRegistryId(const Aws::String& value) { m_registryId = value; }
|
||||
inline void SetRegistryId(Aws::String&& value) { m_registryId = std::move(value); }
|
||||
inline void SetRegistryId(const char* value) { m_registryId.assign(value); }
|
||||
inline DeleteRegistryPolicyResult& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
|
||||
inline DeleteRegistryPolicyResult& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
|
||||
inline DeleteRegistryPolicyResult& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The contents of the registry permissions policy that was deleted.</p>
|
||||
*/
|
||||
inline const Aws::String& GetPolicyText() const{ return m_policyText; }
|
||||
inline void SetPolicyText(const Aws::String& value) { m_policyText = value; }
|
||||
inline void SetPolicyText(Aws::String&& value) { m_policyText = std::move(value); }
|
||||
inline void SetPolicyText(const char* value) { m_policyText.assign(value); }
|
||||
inline DeleteRegistryPolicyResult& WithPolicyText(const Aws::String& value) { SetPolicyText(value); return *this;}
|
||||
inline DeleteRegistryPolicyResult& WithPolicyText(Aws::String&& value) { SetPolicyText(std::move(value)); return *this;}
|
||||
inline DeleteRegistryPolicyResult& WithPolicyText(const char* value) { SetPolicyText(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetRequestId() const{ return m_requestId; }
|
||||
inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
|
||||
inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
|
||||
inline void SetRequestId(const char* value) { m_requestId.assign(value); }
|
||||
inline DeleteRegistryPolicyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
|
||||
inline DeleteRegistryPolicyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
|
||||
inline DeleteRegistryPolicyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_registryId;
|
||||
|
||||
Aws::String m_policyText;
|
||||
|
||||
Aws::String m_requestId;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,59 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/ecr/ECRRequest.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
*/
|
||||
class DeleteRepositoryCreationTemplateRequest : public ECRRequest
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API DeleteRepositoryCreationTemplateRequest();
|
||||
|
||||
// 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 "DeleteRepositoryCreationTemplate"; }
|
||||
|
||||
AWS_ECR_API Aws::String SerializePayload() const override;
|
||||
|
||||
AWS_ECR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The repository namespace prefix associated with the repository creation
|
||||
* template.</p>
|
||||
*/
|
||||
inline const Aws::String& GetPrefix() const{ return m_prefix; }
|
||||
inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
|
||||
inline void SetPrefix(const Aws::String& value) { m_prefixHasBeenSet = true; m_prefix = value; }
|
||||
inline void SetPrefix(Aws::String&& value) { m_prefixHasBeenSet = true; m_prefix = std::move(value); }
|
||||
inline void SetPrefix(const char* value) { m_prefixHasBeenSet = true; m_prefix.assign(value); }
|
||||
inline DeleteRepositoryCreationTemplateRequest& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;}
|
||||
inline DeleteRepositoryCreationTemplateRequest& WithPrefix(Aws::String&& value) { SetPrefix(std::move(value)); return *this;}
|
||||
inline DeleteRepositoryCreationTemplateRequest& WithPrefix(const char* value) { SetPrefix(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_prefix;
|
||||
bool m_prefixHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,81 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/ecr/model/RepositoryCreationTemplate.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
template<typename RESULT_TYPE>
|
||||
class AmazonWebServiceResult;
|
||||
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class DeleteRepositoryCreationTemplateResult
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API DeleteRepositoryCreationTemplateResult();
|
||||
AWS_ECR_API DeleteRepositoryCreationTemplateResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
AWS_ECR_API DeleteRepositoryCreationTemplateResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The registry ID associated with the request.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRegistryId() const{ return m_registryId; }
|
||||
inline void SetRegistryId(const Aws::String& value) { m_registryId = value; }
|
||||
inline void SetRegistryId(Aws::String&& value) { m_registryId = std::move(value); }
|
||||
inline void SetRegistryId(const char* value) { m_registryId.assign(value); }
|
||||
inline DeleteRepositoryCreationTemplateResult& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
|
||||
inline DeleteRepositoryCreationTemplateResult& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
|
||||
inline DeleteRepositoryCreationTemplateResult& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The details of the repository creation template that was deleted.</p>
|
||||
*/
|
||||
inline const RepositoryCreationTemplate& GetRepositoryCreationTemplate() const{ return m_repositoryCreationTemplate; }
|
||||
inline void SetRepositoryCreationTemplate(const RepositoryCreationTemplate& value) { m_repositoryCreationTemplate = value; }
|
||||
inline void SetRepositoryCreationTemplate(RepositoryCreationTemplate&& value) { m_repositoryCreationTemplate = std::move(value); }
|
||||
inline DeleteRepositoryCreationTemplateResult& WithRepositoryCreationTemplate(const RepositoryCreationTemplate& value) { SetRepositoryCreationTemplate(value); return *this;}
|
||||
inline DeleteRepositoryCreationTemplateResult& WithRepositoryCreationTemplate(RepositoryCreationTemplate&& value) { SetRepositoryCreationTemplate(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetRequestId() const{ return m_requestId; }
|
||||
inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
|
||||
inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
|
||||
inline void SetRequestId(const char* value) { m_requestId.assign(value); }
|
||||
inline DeleteRepositoryCreationTemplateResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
|
||||
inline DeleteRepositoryCreationTemplateResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
|
||||
inline DeleteRepositoryCreationTemplateResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_registryId;
|
||||
|
||||
RepositoryCreationTemplate m_repositoryCreationTemplate;
|
||||
|
||||
Aws::String m_requestId;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,78 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/ecr/ECRRequest.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
*/
|
||||
class DeleteRepositoryPolicyRequest : public ECRRequest
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API DeleteRepositoryPolicyRequest();
|
||||
|
||||
// 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 "DeleteRepositoryPolicy"; }
|
||||
|
||||
AWS_ECR_API Aws::String SerializePayload() const override;
|
||||
|
||||
AWS_ECR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The Amazon Web Services account ID associated with the registry that contains
|
||||
* the repository policy to delete. If you do not specify a registry, the default
|
||||
* registry is assumed.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRegistryId() const{ return m_registryId; }
|
||||
inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
|
||||
inline void SetRegistryId(const Aws::String& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
|
||||
inline void SetRegistryId(Aws::String&& value) { m_registryIdHasBeenSet = true; m_registryId = std::move(value); }
|
||||
inline void SetRegistryId(const char* value) { m_registryIdHasBeenSet = true; m_registryId.assign(value); }
|
||||
inline DeleteRepositoryPolicyRequest& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
|
||||
inline DeleteRepositoryPolicyRequest& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
|
||||
inline DeleteRepositoryPolicyRequest& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The name of the repository that is associated with the repository policy to
|
||||
* delete.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
|
||||
inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
|
||||
inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
|
||||
inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
|
||||
inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
|
||||
inline DeleteRepositoryPolicyRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
|
||||
inline DeleteRepositoryPolicyRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
|
||||
inline DeleteRepositoryPolicyRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_registryId;
|
||||
bool m_registryIdHasBeenSet = false;
|
||||
|
||||
Aws::String m_repositoryName;
|
||||
bool m_repositoryNameHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,97 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
template<typename RESULT_TYPE>
|
||||
class AmazonWebServiceResult;
|
||||
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class DeleteRepositoryPolicyResult
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API DeleteRepositoryPolicyResult();
|
||||
AWS_ECR_API DeleteRepositoryPolicyResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
AWS_ECR_API DeleteRepositoryPolicyResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The registry ID associated with the request.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRegistryId() const{ return m_registryId; }
|
||||
inline void SetRegistryId(const Aws::String& value) { m_registryId = value; }
|
||||
inline void SetRegistryId(Aws::String&& value) { m_registryId = std::move(value); }
|
||||
inline void SetRegistryId(const char* value) { m_registryId.assign(value); }
|
||||
inline DeleteRepositoryPolicyResult& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
|
||||
inline DeleteRepositoryPolicyResult& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
|
||||
inline DeleteRepositoryPolicyResult& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The repository name associated with the request.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
|
||||
inline void SetRepositoryName(const Aws::String& value) { m_repositoryName = value; }
|
||||
inline void SetRepositoryName(Aws::String&& value) { m_repositoryName = std::move(value); }
|
||||
inline void SetRepositoryName(const char* value) { m_repositoryName.assign(value); }
|
||||
inline DeleteRepositoryPolicyResult& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
|
||||
inline DeleteRepositoryPolicyResult& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
|
||||
inline DeleteRepositoryPolicyResult& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The JSON repository policy that was deleted from the repository.</p>
|
||||
*/
|
||||
inline const Aws::String& GetPolicyText() const{ return m_policyText; }
|
||||
inline void SetPolicyText(const Aws::String& value) { m_policyText = value; }
|
||||
inline void SetPolicyText(Aws::String&& value) { m_policyText = std::move(value); }
|
||||
inline void SetPolicyText(const char* value) { m_policyText.assign(value); }
|
||||
inline DeleteRepositoryPolicyResult& WithPolicyText(const Aws::String& value) { SetPolicyText(value); return *this;}
|
||||
inline DeleteRepositoryPolicyResult& WithPolicyText(Aws::String&& value) { SetPolicyText(std::move(value)); return *this;}
|
||||
inline DeleteRepositoryPolicyResult& WithPolicyText(const char* value) { SetPolicyText(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetRequestId() const{ return m_requestId; }
|
||||
inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
|
||||
inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
|
||||
inline void SetRequestId(const char* value) { m_requestId.assign(value); }
|
||||
inline DeleteRepositoryPolicyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
|
||||
inline DeleteRepositoryPolicyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
|
||||
inline DeleteRepositoryPolicyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_registryId;
|
||||
|
||||
Aws::String m_repositoryName;
|
||||
|
||||
Aws::String m_policyText;
|
||||
|
||||
Aws::String m_requestId;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,92 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/ecr/ECRRequest.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
*/
|
||||
class DeleteRepositoryRequest : public ECRRequest
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API DeleteRepositoryRequest();
|
||||
|
||||
// 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 "DeleteRepository"; }
|
||||
|
||||
AWS_ECR_API Aws::String SerializePayload() const override;
|
||||
|
||||
AWS_ECR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The Amazon Web Services account ID associated with the registry that contains
|
||||
* the repository to delete. If you do not specify a registry, the default registry
|
||||
* is assumed.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRegistryId() const{ return m_registryId; }
|
||||
inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
|
||||
inline void SetRegistryId(const Aws::String& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
|
||||
inline void SetRegistryId(Aws::String&& value) { m_registryIdHasBeenSet = true; m_registryId = std::move(value); }
|
||||
inline void SetRegistryId(const char* value) { m_registryIdHasBeenSet = true; m_registryId.assign(value); }
|
||||
inline DeleteRepositoryRequest& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
|
||||
inline DeleteRepositoryRequest& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
|
||||
inline DeleteRepositoryRequest& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The name of the repository to delete.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
|
||||
inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
|
||||
inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
|
||||
inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
|
||||
inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
|
||||
inline DeleteRepositoryRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
|
||||
inline DeleteRepositoryRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
|
||||
inline DeleteRepositoryRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>If true, deleting the repository force deletes the contents of the
|
||||
* repository. If false, the repository must be empty before attempting to delete
|
||||
* it.</p>
|
||||
*/
|
||||
inline bool GetForce() const{ return m_force; }
|
||||
inline bool ForceHasBeenSet() const { return m_forceHasBeenSet; }
|
||||
inline void SetForce(bool value) { m_forceHasBeenSet = true; m_force = value; }
|
||||
inline DeleteRepositoryRequest& WithForce(bool value) { SetForce(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_registryId;
|
||||
bool m_registryIdHasBeenSet = false;
|
||||
|
||||
Aws::String m_repositoryName;
|
||||
bool m_repositoryNameHasBeenSet = false;
|
||||
|
||||
bool m_force;
|
||||
bool m_forceHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,66 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/ecr/model/Repository.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
template<typename RESULT_TYPE>
|
||||
class AmazonWebServiceResult;
|
||||
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class DeleteRepositoryResult
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API DeleteRepositoryResult();
|
||||
AWS_ECR_API DeleteRepositoryResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
AWS_ECR_API DeleteRepositoryResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The repository that was deleted.</p>
|
||||
*/
|
||||
inline const Repository& GetRepository() const{ return m_repository; }
|
||||
inline void SetRepository(const Repository& value) { m_repository = value; }
|
||||
inline void SetRepository(Repository&& value) { m_repository = std::move(value); }
|
||||
inline DeleteRepositoryResult& WithRepository(const Repository& value) { SetRepository(value); return *this;}
|
||||
inline DeleteRepositoryResult& WithRepository(Repository&& value) { SetRepository(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetRequestId() const{ return m_requestId; }
|
||||
inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
|
||||
inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
|
||||
inline void SetRequestId(const char* value) { m_requestId.assign(value); }
|
||||
inline DeleteRepositoryResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
|
||||
inline DeleteRepositoryResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
|
||||
inline DeleteRepositoryResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Repository m_repository;
|
||||
|
||||
Aws::String m_requestId;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,90 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/ecr/ECRRequest.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/ecr/model/ImageIdentifier.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
*/
|
||||
class DescribeImageReplicationStatusRequest : public ECRRequest
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API DescribeImageReplicationStatusRequest();
|
||||
|
||||
// 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 "DescribeImageReplicationStatus"; }
|
||||
|
||||
AWS_ECR_API Aws::String SerializePayload() const override;
|
||||
|
||||
AWS_ECR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The name of the repository that the image is in.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
|
||||
inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
|
||||
inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
|
||||
inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
|
||||
inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
|
||||
inline DescribeImageReplicationStatusRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
|
||||
inline DescribeImageReplicationStatusRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
|
||||
inline DescribeImageReplicationStatusRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const ImageIdentifier& GetImageId() const{ return m_imageId; }
|
||||
inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
|
||||
inline void SetImageId(const ImageIdentifier& value) { m_imageIdHasBeenSet = true; m_imageId = value; }
|
||||
inline void SetImageId(ImageIdentifier&& value) { m_imageIdHasBeenSet = true; m_imageId = std::move(value); }
|
||||
inline DescribeImageReplicationStatusRequest& WithImageId(const ImageIdentifier& value) { SetImageId(value); return *this;}
|
||||
inline DescribeImageReplicationStatusRequest& WithImageId(ImageIdentifier&& value) { SetImageId(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The Amazon Web Services account ID associated with the registry. If you do
|
||||
* not specify a registry, the default registry is assumed.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRegistryId() const{ return m_registryId; }
|
||||
inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
|
||||
inline void SetRegistryId(const Aws::String& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
|
||||
inline void SetRegistryId(Aws::String&& value) { m_registryIdHasBeenSet = true; m_registryId = std::move(value); }
|
||||
inline void SetRegistryId(const char* value) { m_registryIdHasBeenSet = true; m_registryId.assign(value); }
|
||||
inline DescribeImageReplicationStatusRequest& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
|
||||
inline DescribeImageReplicationStatusRequest& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
|
||||
inline DescribeImageReplicationStatusRequest& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_repositoryName;
|
||||
bool m_repositoryNameHasBeenSet = false;
|
||||
|
||||
ImageIdentifier m_imageId;
|
||||
bool m_imageIdHasBeenSet = false;
|
||||
|
||||
Aws::String m_registryId;
|
||||
bool m_registryIdHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,97 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/ecr/model/ImageIdentifier.h>
|
||||
#include <aws/core/utils/memory/stl/AWSVector.h>
|
||||
#include <aws/ecr/model/ImageReplicationStatus.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
template<typename RESULT_TYPE>
|
||||
class AmazonWebServiceResult;
|
||||
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class DescribeImageReplicationStatusResult
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API DescribeImageReplicationStatusResult();
|
||||
AWS_ECR_API DescribeImageReplicationStatusResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
AWS_ECR_API DescribeImageReplicationStatusResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The repository name associated with the request.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
|
||||
inline void SetRepositoryName(const Aws::String& value) { m_repositoryName = value; }
|
||||
inline void SetRepositoryName(Aws::String&& value) { m_repositoryName = std::move(value); }
|
||||
inline void SetRepositoryName(const char* value) { m_repositoryName.assign(value); }
|
||||
inline DescribeImageReplicationStatusResult& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
|
||||
inline DescribeImageReplicationStatusResult& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
|
||||
inline DescribeImageReplicationStatusResult& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const ImageIdentifier& GetImageId() const{ return m_imageId; }
|
||||
inline void SetImageId(const ImageIdentifier& value) { m_imageId = value; }
|
||||
inline void SetImageId(ImageIdentifier&& value) { m_imageId = std::move(value); }
|
||||
inline DescribeImageReplicationStatusResult& WithImageId(const ImageIdentifier& value) { SetImageId(value); return *this;}
|
||||
inline DescribeImageReplicationStatusResult& WithImageId(ImageIdentifier&& value) { SetImageId(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The replication status details for the images in the specified
|
||||
* repository.</p>
|
||||
*/
|
||||
inline const Aws::Vector<ImageReplicationStatus>& GetReplicationStatuses() const{ return m_replicationStatuses; }
|
||||
inline void SetReplicationStatuses(const Aws::Vector<ImageReplicationStatus>& value) { m_replicationStatuses = value; }
|
||||
inline void SetReplicationStatuses(Aws::Vector<ImageReplicationStatus>&& value) { m_replicationStatuses = std::move(value); }
|
||||
inline DescribeImageReplicationStatusResult& WithReplicationStatuses(const Aws::Vector<ImageReplicationStatus>& value) { SetReplicationStatuses(value); return *this;}
|
||||
inline DescribeImageReplicationStatusResult& WithReplicationStatuses(Aws::Vector<ImageReplicationStatus>&& value) { SetReplicationStatuses(std::move(value)); return *this;}
|
||||
inline DescribeImageReplicationStatusResult& AddReplicationStatuses(const ImageReplicationStatus& value) { m_replicationStatuses.push_back(value); return *this; }
|
||||
inline DescribeImageReplicationStatusResult& AddReplicationStatuses(ImageReplicationStatus&& value) { m_replicationStatuses.push_back(std::move(value)); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetRequestId() const{ return m_requestId; }
|
||||
inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
|
||||
inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
|
||||
inline void SetRequestId(const char* value) { m_requestId.assign(value); }
|
||||
inline DescribeImageReplicationStatusResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
|
||||
inline DescribeImageReplicationStatusResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
|
||||
inline DescribeImageReplicationStatusResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_repositoryName;
|
||||
|
||||
ImageIdentifier m_imageId;
|
||||
|
||||
Aws::Vector<ImageReplicationStatus> m_replicationStatuses;
|
||||
|
||||
Aws::String m_requestId;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,134 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/ecr/ECRRequest.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/ecr/model/ImageIdentifier.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
*/
|
||||
class DescribeImageScanFindingsRequest : public ECRRequest
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API DescribeImageScanFindingsRequest();
|
||||
|
||||
// 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 "DescribeImageScanFindings"; }
|
||||
|
||||
AWS_ECR_API Aws::String SerializePayload() const override;
|
||||
|
||||
AWS_ECR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The Amazon Web Services account ID associated with the registry that contains
|
||||
* the repository in which to describe the image scan findings for. If you do not
|
||||
* specify a registry, the default registry is assumed.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRegistryId() const{ return m_registryId; }
|
||||
inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
|
||||
inline void SetRegistryId(const Aws::String& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
|
||||
inline void SetRegistryId(Aws::String&& value) { m_registryIdHasBeenSet = true; m_registryId = std::move(value); }
|
||||
inline void SetRegistryId(const char* value) { m_registryIdHasBeenSet = true; m_registryId.assign(value); }
|
||||
inline DescribeImageScanFindingsRequest& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
|
||||
inline DescribeImageScanFindingsRequest& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
|
||||
inline DescribeImageScanFindingsRequest& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The repository for the image for which to describe the scan findings.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
|
||||
inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
|
||||
inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
|
||||
inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
|
||||
inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
|
||||
inline DescribeImageScanFindingsRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
|
||||
inline DescribeImageScanFindingsRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
|
||||
inline DescribeImageScanFindingsRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const ImageIdentifier& GetImageId() const{ return m_imageId; }
|
||||
inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
|
||||
inline void SetImageId(const ImageIdentifier& value) { m_imageIdHasBeenSet = true; m_imageId = value; }
|
||||
inline void SetImageId(ImageIdentifier&& value) { m_imageIdHasBeenSet = true; m_imageId = std::move(value); }
|
||||
inline DescribeImageScanFindingsRequest& WithImageId(const ImageIdentifier& value) { SetImageId(value); return *this;}
|
||||
inline DescribeImageScanFindingsRequest& WithImageId(ImageIdentifier&& value) { SetImageId(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The <code>nextToken</code> value returned from a previous paginated
|
||||
* <code>DescribeImageScanFindings</code> request where <code>maxResults</code> was
|
||||
* used and the results exceeded the value of that parameter. Pagination continues
|
||||
* from the end of the previous results that returned the <code>nextToken</code>
|
||||
* value. This value is null when there are no more results to return.</p>
|
||||
*/
|
||||
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
|
||||
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
|
||||
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
|
||||
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
|
||||
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
|
||||
inline DescribeImageScanFindingsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
|
||||
inline DescribeImageScanFindingsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
|
||||
inline DescribeImageScanFindingsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The maximum number of image scan results returned by
|
||||
* <code>DescribeImageScanFindings</code> in paginated output. When this parameter
|
||||
* is used, <code>DescribeImageScanFindings</code> only returns
|
||||
* <code>maxResults</code> results in a single page along with a
|
||||
* <code>nextToken</code> response element. The remaining results of the initial
|
||||
* request can be seen by sending another <code>DescribeImageScanFindings</code>
|
||||
* request with the returned <code>nextToken</code> value. This value can be
|
||||
* between 1 and 1000. If this parameter is not used, then
|
||||
* <code>DescribeImageScanFindings</code> returns up to 100 results and a
|
||||
* <code>nextToken</code> value, if applicable.</p>
|
||||
*/
|
||||
inline int GetMaxResults() const{ return m_maxResults; }
|
||||
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
|
||||
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
|
||||
inline DescribeImageScanFindingsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_registryId;
|
||||
bool m_registryIdHasBeenSet = false;
|
||||
|
||||
Aws::String m_repositoryName;
|
||||
bool m_repositoryNameHasBeenSet = false;
|
||||
|
||||
ImageIdentifier m_imageId;
|
||||
bool m_imageIdHasBeenSet = false;
|
||||
|
||||
Aws::String m_nextToken;
|
||||
bool m_nextTokenHasBeenSet = false;
|
||||
|
||||
int m_maxResults;
|
||||
bool m_maxResultsHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,141 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/ecr/model/ImageIdentifier.h>
|
||||
#include <aws/ecr/model/ImageScanStatus.h>
|
||||
#include <aws/ecr/model/ImageScanFindings.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
template<typename RESULT_TYPE>
|
||||
class AmazonWebServiceResult;
|
||||
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class DescribeImageScanFindingsResult
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API DescribeImageScanFindingsResult();
|
||||
AWS_ECR_API DescribeImageScanFindingsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
AWS_ECR_API DescribeImageScanFindingsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The registry ID associated with the request.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRegistryId() const{ return m_registryId; }
|
||||
inline void SetRegistryId(const Aws::String& value) { m_registryId = value; }
|
||||
inline void SetRegistryId(Aws::String&& value) { m_registryId = std::move(value); }
|
||||
inline void SetRegistryId(const char* value) { m_registryId.assign(value); }
|
||||
inline DescribeImageScanFindingsResult& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
|
||||
inline DescribeImageScanFindingsResult& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
|
||||
inline DescribeImageScanFindingsResult& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The repository name associated with the request.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
|
||||
inline void SetRepositoryName(const Aws::String& value) { m_repositoryName = value; }
|
||||
inline void SetRepositoryName(Aws::String&& value) { m_repositoryName = std::move(value); }
|
||||
inline void SetRepositoryName(const char* value) { m_repositoryName.assign(value); }
|
||||
inline DescribeImageScanFindingsResult& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
|
||||
inline DescribeImageScanFindingsResult& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
|
||||
inline DescribeImageScanFindingsResult& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const ImageIdentifier& GetImageId() const{ return m_imageId; }
|
||||
inline void SetImageId(const ImageIdentifier& value) { m_imageId = value; }
|
||||
inline void SetImageId(ImageIdentifier&& value) { m_imageId = std::move(value); }
|
||||
inline DescribeImageScanFindingsResult& WithImageId(const ImageIdentifier& value) { SetImageId(value); return *this;}
|
||||
inline DescribeImageScanFindingsResult& WithImageId(ImageIdentifier&& value) { SetImageId(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The current state of the scan.</p>
|
||||
*/
|
||||
inline const ImageScanStatus& GetImageScanStatus() const{ return m_imageScanStatus; }
|
||||
inline void SetImageScanStatus(const ImageScanStatus& value) { m_imageScanStatus = value; }
|
||||
inline void SetImageScanStatus(ImageScanStatus&& value) { m_imageScanStatus = std::move(value); }
|
||||
inline DescribeImageScanFindingsResult& WithImageScanStatus(const ImageScanStatus& value) { SetImageScanStatus(value); return *this;}
|
||||
inline DescribeImageScanFindingsResult& WithImageScanStatus(ImageScanStatus&& value) { SetImageScanStatus(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The information contained in the image scan findings.</p>
|
||||
*/
|
||||
inline const ImageScanFindings& GetImageScanFindings() const{ return m_imageScanFindings; }
|
||||
inline void SetImageScanFindings(const ImageScanFindings& value) { m_imageScanFindings = value; }
|
||||
inline void SetImageScanFindings(ImageScanFindings&& value) { m_imageScanFindings = std::move(value); }
|
||||
inline DescribeImageScanFindingsResult& WithImageScanFindings(const ImageScanFindings& value) { SetImageScanFindings(value); return *this;}
|
||||
inline DescribeImageScanFindingsResult& WithImageScanFindings(ImageScanFindings&& value) { SetImageScanFindings(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The <code>nextToken</code> value to include in a future
|
||||
* <code>DescribeImageScanFindings</code> request. When the results of a
|
||||
* <code>DescribeImageScanFindings</code> request exceed <code>maxResults</code>,
|
||||
* this value can be used to retrieve the next page of results. This value is null
|
||||
* when there are no more results to return.</p>
|
||||
*/
|
||||
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
|
||||
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
|
||||
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
|
||||
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
|
||||
inline DescribeImageScanFindingsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
|
||||
inline DescribeImageScanFindingsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
|
||||
inline DescribeImageScanFindingsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetRequestId() const{ return m_requestId; }
|
||||
inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
|
||||
inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
|
||||
inline void SetRequestId(const char* value) { m_requestId.assign(value); }
|
||||
inline DescribeImageScanFindingsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
|
||||
inline DescribeImageScanFindingsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
|
||||
inline DescribeImageScanFindingsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_registryId;
|
||||
|
||||
Aws::String m_repositoryName;
|
||||
|
||||
ImageIdentifier m_imageId;
|
||||
|
||||
ImageScanStatus m_imageScanStatus;
|
||||
|
||||
ImageScanFindings m_imageScanFindings;
|
||||
|
||||
Aws::String m_nextToken;
|
||||
|
||||
Aws::String m_requestId;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,62 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/ecr/model/TagStatus.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p>An object representing a filter on a <a>DescribeImages</a>
|
||||
* operation.</p><p><h3>See Also:</h3> <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DescribeImagesFilter">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class DescribeImagesFilter
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API DescribeImagesFilter();
|
||||
AWS_ECR_API DescribeImagesFilter(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_ECR_API DescribeImagesFilter& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The tag status with which to filter your <a>DescribeImages</a> results. You
|
||||
* can filter results based on whether they are <code>TAGGED</code> or
|
||||
* <code>UNTAGGED</code>.</p>
|
||||
*/
|
||||
inline const TagStatus& GetTagStatus() const{ return m_tagStatus; }
|
||||
inline bool TagStatusHasBeenSet() const { return m_tagStatusHasBeenSet; }
|
||||
inline void SetTagStatus(const TagStatus& value) { m_tagStatusHasBeenSet = true; m_tagStatus = value; }
|
||||
inline void SetTagStatus(TagStatus&& value) { m_tagStatusHasBeenSet = true; m_tagStatus = std::move(value); }
|
||||
inline DescribeImagesFilter& WithTagStatus(const TagStatus& value) { SetTagStatus(value); return *this;}
|
||||
inline DescribeImagesFilter& WithTagStatus(TagStatus&& value) { SetTagStatus(std::move(value)); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
TagStatus m_tagStatus;
|
||||
bool m_tagStatusHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,157 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/ecr/ECRRequest.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/core/utils/memory/stl/AWSVector.h>
|
||||
#include <aws/ecr/model/DescribeImagesFilter.h>
|
||||
#include <aws/ecr/model/ImageIdentifier.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
*/
|
||||
class DescribeImagesRequest : public ECRRequest
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API DescribeImagesRequest();
|
||||
|
||||
// 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 "DescribeImages"; }
|
||||
|
||||
AWS_ECR_API Aws::String SerializePayload() const override;
|
||||
|
||||
AWS_ECR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The Amazon Web Services account ID associated with the registry that contains
|
||||
* the repository in which to describe images. If you do not specify a registry,
|
||||
* the default registry is assumed.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRegistryId() const{ return m_registryId; }
|
||||
inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
|
||||
inline void SetRegistryId(const Aws::String& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
|
||||
inline void SetRegistryId(Aws::String&& value) { m_registryIdHasBeenSet = true; m_registryId = std::move(value); }
|
||||
inline void SetRegistryId(const char* value) { m_registryIdHasBeenSet = true; m_registryId.assign(value); }
|
||||
inline DescribeImagesRequest& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
|
||||
inline DescribeImagesRequest& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
|
||||
inline DescribeImagesRequest& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The repository that contains the images to describe.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
|
||||
inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
|
||||
inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
|
||||
inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
|
||||
inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
|
||||
inline DescribeImagesRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
|
||||
inline DescribeImagesRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
|
||||
inline DescribeImagesRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The list of image IDs for the requested repository.</p>
|
||||
*/
|
||||
inline const Aws::Vector<ImageIdentifier>& GetImageIds() const{ return m_imageIds; }
|
||||
inline bool ImageIdsHasBeenSet() const { return m_imageIdsHasBeenSet; }
|
||||
inline void SetImageIds(const Aws::Vector<ImageIdentifier>& value) { m_imageIdsHasBeenSet = true; m_imageIds = value; }
|
||||
inline void SetImageIds(Aws::Vector<ImageIdentifier>&& value) { m_imageIdsHasBeenSet = true; m_imageIds = std::move(value); }
|
||||
inline DescribeImagesRequest& WithImageIds(const Aws::Vector<ImageIdentifier>& value) { SetImageIds(value); return *this;}
|
||||
inline DescribeImagesRequest& WithImageIds(Aws::Vector<ImageIdentifier>&& value) { SetImageIds(std::move(value)); return *this;}
|
||||
inline DescribeImagesRequest& AddImageIds(const ImageIdentifier& value) { m_imageIdsHasBeenSet = true; m_imageIds.push_back(value); return *this; }
|
||||
inline DescribeImagesRequest& AddImageIds(ImageIdentifier&& value) { m_imageIdsHasBeenSet = true; m_imageIds.push_back(std::move(value)); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The <code>nextToken</code> value returned from a previous paginated
|
||||
* <code>DescribeImages</code> request where <code>maxResults</code> was used and
|
||||
* the results exceeded the value of that parameter. Pagination continues from the
|
||||
* end of the previous results that returned the <code>nextToken</code> value. This
|
||||
* value is <code>null</code> when there are no more results to return. This option
|
||||
* cannot be used when you specify images with <code>imageIds</code>.</p>
|
||||
*/
|
||||
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
|
||||
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
|
||||
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
|
||||
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
|
||||
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
|
||||
inline DescribeImagesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
|
||||
inline DescribeImagesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
|
||||
inline DescribeImagesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The maximum number of repository results returned by
|
||||
* <code>DescribeImages</code> in paginated output. When this parameter is used,
|
||||
* <code>DescribeImages</code> only returns <code>maxResults</code> results in a
|
||||
* single page along with a <code>nextToken</code> response element. The remaining
|
||||
* results of the initial request can be seen by sending another
|
||||
* <code>DescribeImages</code> request with the returned <code>nextToken</code>
|
||||
* value. This value can be between 1 and 1000. If this parameter is not used, then
|
||||
* <code>DescribeImages</code> returns up to 100 results and a
|
||||
* <code>nextToken</code> value, if applicable. This option cannot be used when you
|
||||
* specify images with <code>imageIds</code>.</p>
|
||||
*/
|
||||
inline int GetMaxResults() const{ return m_maxResults; }
|
||||
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
|
||||
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
|
||||
inline DescribeImagesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The filter key and value with which to filter your
|
||||
* <code>DescribeImages</code> results.</p>
|
||||
*/
|
||||
inline const DescribeImagesFilter& GetFilter() const{ return m_filter; }
|
||||
inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
|
||||
inline void SetFilter(const DescribeImagesFilter& value) { m_filterHasBeenSet = true; m_filter = value; }
|
||||
inline void SetFilter(DescribeImagesFilter&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
|
||||
inline DescribeImagesRequest& WithFilter(const DescribeImagesFilter& value) { SetFilter(value); return *this;}
|
||||
inline DescribeImagesRequest& WithFilter(DescribeImagesFilter&& value) { SetFilter(std::move(value)); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_registryId;
|
||||
bool m_registryIdHasBeenSet = false;
|
||||
|
||||
Aws::String m_repositoryName;
|
||||
bool m_repositoryNameHasBeenSet = false;
|
||||
|
||||
Aws::Vector<ImageIdentifier> m_imageIds;
|
||||
bool m_imageIdsHasBeenSet = false;
|
||||
|
||||
Aws::String m_nextToken;
|
||||
bool m_nextTokenHasBeenSet = false;
|
||||
|
||||
int m_maxResults;
|
||||
bool m_maxResultsHasBeenSet = false;
|
||||
|
||||
DescribeImagesFilter m_filter;
|
||||
bool m_filterHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,88 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSVector.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/ecr/model/ImageDetail.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
template<typename RESULT_TYPE>
|
||||
class AmazonWebServiceResult;
|
||||
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class DescribeImagesResult
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API DescribeImagesResult();
|
||||
AWS_ECR_API DescribeImagesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
AWS_ECR_API DescribeImagesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>A list of <a>ImageDetail</a> objects that contain data about the image.</p>
|
||||
*/
|
||||
inline const Aws::Vector<ImageDetail>& GetImageDetails() const{ return m_imageDetails; }
|
||||
inline void SetImageDetails(const Aws::Vector<ImageDetail>& value) { m_imageDetails = value; }
|
||||
inline void SetImageDetails(Aws::Vector<ImageDetail>&& value) { m_imageDetails = std::move(value); }
|
||||
inline DescribeImagesResult& WithImageDetails(const Aws::Vector<ImageDetail>& value) { SetImageDetails(value); return *this;}
|
||||
inline DescribeImagesResult& WithImageDetails(Aws::Vector<ImageDetail>&& value) { SetImageDetails(std::move(value)); return *this;}
|
||||
inline DescribeImagesResult& AddImageDetails(const ImageDetail& value) { m_imageDetails.push_back(value); return *this; }
|
||||
inline DescribeImagesResult& AddImageDetails(ImageDetail&& value) { m_imageDetails.push_back(std::move(value)); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The <code>nextToken</code> value to include in a future
|
||||
* <code>DescribeImages</code> request. When the results of a
|
||||
* <code>DescribeImages</code> request exceed <code>maxResults</code>, this value
|
||||
* can be used to retrieve the next page of results. This value is
|
||||
* <code>null</code> when there are no more results to return.</p>
|
||||
*/
|
||||
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
|
||||
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
|
||||
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
|
||||
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
|
||||
inline DescribeImagesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
|
||||
inline DescribeImagesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
|
||||
inline DescribeImagesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetRequestId() const{ return m_requestId; }
|
||||
inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
|
||||
inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
|
||||
inline void SetRequestId(const char* value) { m_requestId.assign(value); }
|
||||
inline DescribeImagesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
|
||||
inline DescribeImagesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
|
||||
inline DescribeImagesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::Vector<ImageDetail> m_imageDetails;
|
||||
|
||||
Aws::String m_nextToken;
|
||||
|
||||
Aws::String m_requestId;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,125 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/ecr/ECRRequest.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/core/utils/memory/stl/AWSVector.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
*/
|
||||
class DescribePullThroughCacheRulesRequest : public ECRRequest
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API DescribePullThroughCacheRulesRequest();
|
||||
|
||||
// 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 "DescribePullThroughCacheRules"; }
|
||||
|
||||
AWS_ECR_API Aws::String SerializePayload() const override;
|
||||
|
||||
AWS_ECR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The Amazon Web Services account ID associated with the registry to return the
|
||||
* pull through cache rules for. If you do not specify a registry, the default
|
||||
* registry is assumed.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRegistryId() const{ return m_registryId; }
|
||||
inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
|
||||
inline void SetRegistryId(const Aws::String& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
|
||||
inline void SetRegistryId(Aws::String&& value) { m_registryIdHasBeenSet = true; m_registryId = std::move(value); }
|
||||
inline void SetRegistryId(const char* value) { m_registryIdHasBeenSet = true; m_registryId.assign(value); }
|
||||
inline DescribePullThroughCacheRulesRequest& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
|
||||
inline DescribePullThroughCacheRulesRequest& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
|
||||
inline DescribePullThroughCacheRulesRequest& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The Amazon ECR repository prefixes associated with the pull through cache
|
||||
* rules to return. If no repository prefix value is specified, all pull through
|
||||
* cache rules are returned.</p>
|
||||
*/
|
||||
inline const Aws::Vector<Aws::String>& GetEcrRepositoryPrefixes() const{ return m_ecrRepositoryPrefixes; }
|
||||
inline bool EcrRepositoryPrefixesHasBeenSet() const { return m_ecrRepositoryPrefixesHasBeenSet; }
|
||||
inline void SetEcrRepositoryPrefixes(const Aws::Vector<Aws::String>& value) { m_ecrRepositoryPrefixesHasBeenSet = true; m_ecrRepositoryPrefixes = value; }
|
||||
inline void SetEcrRepositoryPrefixes(Aws::Vector<Aws::String>&& value) { m_ecrRepositoryPrefixesHasBeenSet = true; m_ecrRepositoryPrefixes = std::move(value); }
|
||||
inline DescribePullThroughCacheRulesRequest& WithEcrRepositoryPrefixes(const Aws::Vector<Aws::String>& value) { SetEcrRepositoryPrefixes(value); return *this;}
|
||||
inline DescribePullThroughCacheRulesRequest& WithEcrRepositoryPrefixes(Aws::Vector<Aws::String>&& value) { SetEcrRepositoryPrefixes(std::move(value)); return *this;}
|
||||
inline DescribePullThroughCacheRulesRequest& AddEcrRepositoryPrefixes(const Aws::String& value) { m_ecrRepositoryPrefixesHasBeenSet = true; m_ecrRepositoryPrefixes.push_back(value); return *this; }
|
||||
inline DescribePullThroughCacheRulesRequest& AddEcrRepositoryPrefixes(Aws::String&& value) { m_ecrRepositoryPrefixesHasBeenSet = true; m_ecrRepositoryPrefixes.push_back(std::move(value)); return *this; }
|
||||
inline DescribePullThroughCacheRulesRequest& AddEcrRepositoryPrefixes(const char* value) { m_ecrRepositoryPrefixesHasBeenSet = true; m_ecrRepositoryPrefixes.push_back(value); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The <code>nextToken</code> value returned from a previous paginated
|
||||
* <code>DescribePullThroughCacheRulesRequest</code> request where
|
||||
* <code>maxResults</code> was used and the results exceeded the value of that
|
||||
* parameter. Pagination continues from the end of the previous results that
|
||||
* returned the <code>nextToken</code> value. This value is null when there are no
|
||||
* more results to return.</p>
|
||||
*/
|
||||
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
|
||||
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
|
||||
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
|
||||
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
|
||||
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
|
||||
inline DescribePullThroughCacheRulesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
|
||||
inline DescribePullThroughCacheRulesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
|
||||
inline DescribePullThroughCacheRulesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The maximum number of pull through cache rules returned by
|
||||
* <code>DescribePullThroughCacheRulesRequest</code> in paginated output. When this
|
||||
* parameter is used, <code>DescribePullThroughCacheRulesRequest</code> only
|
||||
* returns <code>maxResults</code> results in a single page along with a
|
||||
* <code>nextToken</code> response element. The remaining results of the initial
|
||||
* request can be seen by sending another
|
||||
* <code>DescribePullThroughCacheRulesRequest</code> request with the returned
|
||||
* <code>nextToken</code> value. This value can be between 1 and 1000. If this
|
||||
* parameter is not used, then <code>DescribePullThroughCacheRulesRequest</code>
|
||||
* returns up to 100 results and a <code>nextToken</code> value, if applicable.</p>
|
||||
*/
|
||||
inline int GetMaxResults() const{ return m_maxResults; }
|
||||
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
|
||||
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
|
||||
inline DescribePullThroughCacheRulesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_registryId;
|
||||
bool m_registryIdHasBeenSet = false;
|
||||
|
||||
Aws::Vector<Aws::String> m_ecrRepositoryPrefixes;
|
||||
bool m_ecrRepositoryPrefixesHasBeenSet = false;
|
||||
|
||||
Aws::String m_nextToken;
|
||||
bool m_nextTokenHasBeenSet = false;
|
||||
|
||||
int m_maxResults;
|
||||
bool m_maxResultsHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,88 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSVector.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/ecr/model/PullThroughCacheRule.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
template<typename RESULT_TYPE>
|
||||
class AmazonWebServiceResult;
|
||||
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class DescribePullThroughCacheRulesResult
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API DescribePullThroughCacheRulesResult();
|
||||
AWS_ECR_API DescribePullThroughCacheRulesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
AWS_ECR_API DescribePullThroughCacheRulesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The details of the pull through cache rules.</p>
|
||||
*/
|
||||
inline const Aws::Vector<PullThroughCacheRule>& GetPullThroughCacheRules() const{ return m_pullThroughCacheRules; }
|
||||
inline void SetPullThroughCacheRules(const Aws::Vector<PullThroughCacheRule>& value) { m_pullThroughCacheRules = value; }
|
||||
inline void SetPullThroughCacheRules(Aws::Vector<PullThroughCacheRule>&& value) { m_pullThroughCacheRules = std::move(value); }
|
||||
inline DescribePullThroughCacheRulesResult& WithPullThroughCacheRules(const Aws::Vector<PullThroughCacheRule>& value) { SetPullThroughCacheRules(value); return *this;}
|
||||
inline DescribePullThroughCacheRulesResult& WithPullThroughCacheRules(Aws::Vector<PullThroughCacheRule>&& value) { SetPullThroughCacheRules(std::move(value)); return *this;}
|
||||
inline DescribePullThroughCacheRulesResult& AddPullThroughCacheRules(const PullThroughCacheRule& value) { m_pullThroughCacheRules.push_back(value); return *this; }
|
||||
inline DescribePullThroughCacheRulesResult& AddPullThroughCacheRules(PullThroughCacheRule&& value) { m_pullThroughCacheRules.push_back(std::move(value)); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The <code>nextToken</code> value to include in a future
|
||||
* <code>DescribePullThroughCacheRulesRequest</code> request. When the results of a
|
||||
* <code>DescribePullThroughCacheRulesRequest</code> request exceed
|
||||
* <code>maxResults</code>, this value can be used to retrieve the next page of
|
||||
* results. This value is null when there are no more results to return.</p>
|
||||
*/
|
||||
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
|
||||
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
|
||||
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
|
||||
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
|
||||
inline DescribePullThroughCacheRulesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
|
||||
inline DescribePullThroughCacheRulesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
|
||||
inline DescribePullThroughCacheRulesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetRequestId() const{ return m_requestId; }
|
||||
inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
|
||||
inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
|
||||
inline void SetRequestId(const char* value) { m_requestId.assign(value); }
|
||||
inline DescribePullThroughCacheRulesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
|
||||
inline DescribePullThroughCacheRulesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
|
||||
inline DescribePullThroughCacheRulesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::Vector<PullThroughCacheRule> m_pullThroughCacheRules;
|
||||
|
||||
Aws::String m_nextToken;
|
||||
|
||||
Aws::String m_requestId;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,38 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/ecr/ECRRequest.h>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
*/
|
||||
class DescribeRegistryRequest : public ECRRequest
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API DescribeRegistryRequest();
|
||||
|
||||
// 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 "DescribeRegistry"; }
|
||||
|
||||
AWS_ECR_API Aws::String SerializePayload() const override;
|
||||
|
||||
AWS_ECR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
|
||||
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,81 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/ecr/model/ReplicationConfiguration.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
template<typename RESULT_TYPE>
|
||||
class AmazonWebServiceResult;
|
||||
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class DescribeRegistryResult
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API DescribeRegistryResult();
|
||||
AWS_ECR_API DescribeRegistryResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
AWS_ECR_API DescribeRegistryResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The registry ID associated with the request.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRegistryId() const{ return m_registryId; }
|
||||
inline void SetRegistryId(const Aws::String& value) { m_registryId = value; }
|
||||
inline void SetRegistryId(Aws::String&& value) { m_registryId = std::move(value); }
|
||||
inline void SetRegistryId(const char* value) { m_registryId.assign(value); }
|
||||
inline DescribeRegistryResult& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
|
||||
inline DescribeRegistryResult& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
|
||||
inline DescribeRegistryResult& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The replication configuration for the registry.</p>
|
||||
*/
|
||||
inline const ReplicationConfiguration& GetReplicationConfiguration() const{ return m_replicationConfiguration; }
|
||||
inline void SetReplicationConfiguration(const ReplicationConfiguration& value) { m_replicationConfiguration = value; }
|
||||
inline void SetReplicationConfiguration(ReplicationConfiguration&& value) { m_replicationConfiguration = std::move(value); }
|
||||
inline DescribeRegistryResult& WithReplicationConfiguration(const ReplicationConfiguration& value) { SetReplicationConfiguration(value); return *this;}
|
||||
inline DescribeRegistryResult& WithReplicationConfiguration(ReplicationConfiguration&& value) { SetReplicationConfiguration(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetRequestId() const{ return m_requestId; }
|
||||
inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
|
||||
inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
|
||||
inline void SetRequestId(const char* value) { m_requestId.assign(value); }
|
||||
inline DescribeRegistryResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
|
||||
inline DescribeRegistryResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
|
||||
inline DescribeRegistryResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_registryId;
|
||||
|
||||
ReplicationConfiguration m_replicationConfiguration;
|
||||
|
||||
Aws::String m_requestId;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,127 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/ecr/ECRRequest.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/core/utils/memory/stl/AWSVector.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
*/
|
||||
class DescribeRepositoriesRequest : public ECRRequest
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API DescribeRepositoriesRequest();
|
||||
|
||||
// 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 "DescribeRepositories"; }
|
||||
|
||||
AWS_ECR_API Aws::String SerializePayload() const override;
|
||||
|
||||
AWS_ECR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The Amazon Web Services account ID associated with the registry that contains
|
||||
* the repositories to be described. If you do not specify a registry, the default
|
||||
* registry is assumed.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRegistryId() const{ return m_registryId; }
|
||||
inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
|
||||
inline void SetRegistryId(const Aws::String& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
|
||||
inline void SetRegistryId(Aws::String&& value) { m_registryIdHasBeenSet = true; m_registryId = std::move(value); }
|
||||
inline void SetRegistryId(const char* value) { m_registryIdHasBeenSet = true; m_registryId.assign(value); }
|
||||
inline DescribeRepositoriesRequest& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
|
||||
inline DescribeRepositoriesRequest& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
|
||||
inline DescribeRepositoriesRequest& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>A list of repositories to describe. If this parameter is omitted, then all
|
||||
* repositories in a registry are described.</p>
|
||||
*/
|
||||
inline const Aws::Vector<Aws::String>& GetRepositoryNames() const{ return m_repositoryNames; }
|
||||
inline bool RepositoryNamesHasBeenSet() const { return m_repositoryNamesHasBeenSet; }
|
||||
inline void SetRepositoryNames(const Aws::Vector<Aws::String>& value) { m_repositoryNamesHasBeenSet = true; m_repositoryNames = value; }
|
||||
inline void SetRepositoryNames(Aws::Vector<Aws::String>&& value) { m_repositoryNamesHasBeenSet = true; m_repositoryNames = std::move(value); }
|
||||
inline DescribeRepositoriesRequest& WithRepositoryNames(const Aws::Vector<Aws::String>& value) { SetRepositoryNames(value); return *this;}
|
||||
inline DescribeRepositoriesRequest& WithRepositoryNames(Aws::Vector<Aws::String>&& value) { SetRepositoryNames(std::move(value)); return *this;}
|
||||
inline DescribeRepositoriesRequest& AddRepositoryNames(const Aws::String& value) { m_repositoryNamesHasBeenSet = true; m_repositoryNames.push_back(value); return *this; }
|
||||
inline DescribeRepositoriesRequest& AddRepositoryNames(Aws::String&& value) { m_repositoryNamesHasBeenSet = true; m_repositoryNames.push_back(std::move(value)); return *this; }
|
||||
inline DescribeRepositoriesRequest& AddRepositoryNames(const char* value) { m_repositoryNamesHasBeenSet = true; m_repositoryNames.push_back(value); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The <code>nextToken</code> value returned from a previous paginated
|
||||
* <code>DescribeRepositories</code> request where <code>maxResults</code> was used
|
||||
* and the results exceeded the value of that parameter. Pagination continues from
|
||||
* the end of the previous results that returned the <code>nextToken</code> value.
|
||||
* This value is <code>null</code> when there are no more results to return. This
|
||||
* option cannot be used when you specify repositories with
|
||||
* <code>repositoryNames</code>.</p> <p>This token should be treated as an
|
||||
* opaque identifier that is only used to retrieve the next items in a list and not
|
||||
* for other programmatic purposes.</p>
|
||||
*/
|
||||
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
|
||||
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
|
||||
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
|
||||
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
|
||||
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
|
||||
inline DescribeRepositoriesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
|
||||
inline DescribeRepositoriesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
|
||||
inline DescribeRepositoriesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The maximum number of repository results returned by
|
||||
* <code>DescribeRepositories</code> in paginated output. When this parameter is
|
||||
* used, <code>DescribeRepositories</code> only returns <code>maxResults</code>
|
||||
* results in a single page along with a <code>nextToken</code> response element.
|
||||
* The remaining results of the initial request can be seen by sending another
|
||||
* <code>DescribeRepositories</code> request with the returned
|
||||
* <code>nextToken</code> value. This value can be between 1 and 1000. If this
|
||||
* parameter is not used, then <code>DescribeRepositories</code> returns up to 100
|
||||
* results and a <code>nextToken</code> value, if applicable. This option cannot be
|
||||
* used when you specify repositories with <code>repositoryNames</code>.</p>
|
||||
*/
|
||||
inline int GetMaxResults() const{ return m_maxResults; }
|
||||
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
|
||||
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
|
||||
inline DescribeRepositoriesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_registryId;
|
||||
bool m_registryIdHasBeenSet = false;
|
||||
|
||||
Aws::Vector<Aws::String> m_repositoryNames;
|
||||
bool m_repositoryNamesHasBeenSet = false;
|
||||
|
||||
Aws::String m_nextToken;
|
||||
bool m_nextTokenHasBeenSet = false;
|
||||
|
||||
int m_maxResults;
|
||||
bool m_maxResultsHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,88 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSVector.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/ecr/model/Repository.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
template<typename RESULT_TYPE>
|
||||
class AmazonWebServiceResult;
|
||||
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class DescribeRepositoriesResult
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API DescribeRepositoriesResult();
|
||||
AWS_ECR_API DescribeRepositoriesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
AWS_ECR_API DescribeRepositoriesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>A list of repository objects corresponding to valid repositories.</p>
|
||||
*/
|
||||
inline const Aws::Vector<Repository>& GetRepositories() const{ return m_repositories; }
|
||||
inline void SetRepositories(const Aws::Vector<Repository>& value) { m_repositories = value; }
|
||||
inline void SetRepositories(Aws::Vector<Repository>&& value) { m_repositories = std::move(value); }
|
||||
inline DescribeRepositoriesResult& WithRepositories(const Aws::Vector<Repository>& value) { SetRepositories(value); return *this;}
|
||||
inline DescribeRepositoriesResult& WithRepositories(Aws::Vector<Repository>&& value) { SetRepositories(std::move(value)); return *this;}
|
||||
inline DescribeRepositoriesResult& AddRepositories(const Repository& value) { m_repositories.push_back(value); return *this; }
|
||||
inline DescribeRepositoriesResult& AddRepositories(Repository&& value) { m_repositories.push_back(std::move(value)); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The <code>nextToken</code> value to include in a future
|
||||
* <code>DescribeRepositories</code> request. When the results of a
|
||||
* <code>DescribeRepositories</code> request exceed <code>maxResults</code>, this
|
||||
* value can be used to retrieve the next page of results. This value is
|
||||
* <code>null</code> when there are no more results to return.</p>
|
||||
*/
|
||||
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
|
||||
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
|
||||
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
|
||||
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
|
||||
inline DescribeRepositoriesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
|
||||
inline DescribeRepositoriesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
|
||||
inline DescribeRepositoriesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetRequestId() const{ return m_requestId; }
|
||||
inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
|
||||
inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
|
||||
inline void SetRequestId(const char* value) { m_requestId.assign(value); }
|
||||
inline DescribeRepositoriesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
|
||||
inline DescribeRepositoriesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
|
||||
inline DescribeRepositoriesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::Vector<Repository> m_repositories;
|
||||
|
||||
Aws::String m_nextToken;
|
||||
|
||||
Aws::String m_requestId;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,110 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/ecr/ECRRequest.h>
|
||||
#include <aws/core/utils/memory/stl/AWSVector.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
*/
|
||||
class DescribeRepositoryCreationTemplatesRequest : public ECRRequest
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API DescribeRepositoryCreationTemplatesRequest();
|
||||
|
||||
// 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 "DescribeRepositoryCreationTemplates"; }
|
||||
|
||||
AWS_ECR_API Aws::String SerializePayload() const override;
|
||||
|
||||
AWS_ECR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The repository namespace prefixes associated with the repository creation
|
||||
* templates to describe. If this value is not specified, all repository creation
|
||||
* templates are returned.</p>
|
||||
*/
|
||||
inline const Aws::Vector<Aws::String>& GetPrefixes() const{ return m_prefixes; }
|
||||
inline bool PrefixesHasBeenSet() const { return m_prefixesHasBeenSet; }
|
||||
inline void SetPrefixes(const Aws::Vector<Aws::String>& value) { m_prefixesHasBeenSet = true; m_prefixes = value; }
|
||||
inline void SetPrefixes(Aws::Vector<Aws::String>&& value) { m_prefixesHasBeenSet = true; m_prefixes = std::move(value); }
|
||||
inline DescribeRepositoryCreationTemplatesRequest& WithPrefixes(const Aws::Vector<Aws::String>& value) { SetPrefixes(value); return *this;}
|
||||
inline DescribeRepositoryCreationTemplatesRequest& WithPrefixes(Aws::Vector<Aws::String>&& value) { SetPrefixes(std::move(value)); return *this;}
|
||||
inline DescribeRepositoryCreationTemplatesRequest& AddPrefixes(const Aws::String& value) { m_prefixesHasBeenSet = true; m_prefixes.push_back(value); return *this; }
|
||||
inline DescribeRepositoryCreationTemplatesRequest& AddPrefixes(Aws::String&& value) { m_prefixesHasBeenSet = true; m_prefixes.push_back(std::move(value)); return *this; }
|
||||
inline DescribeRepositoryCreationTemplatesRequest& AddPrefixes(const char* value) { m_prefixesHasBeenSet = true; m_prefixes.push_back(value); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The <code>nextToken</code> value returned from a previous paginated
|
||||
* <code>DescribeRepositoryCreationTemplates</code> request where
|
||||
* <code>maxResults</code> was used and the results exceeded the value of that
|
||||
* parameter. Pagination continues from the end of the previous results that
|
||||
* returned the <code>nextToken</code> value. This value is <code>null</code> when
|
||||
* there are no more results to return.</p> <p>This token should be treated
|
||||
* as an opaque identifier that is only used to retrieve the next items in a list
|
||||
* and not for other programmatic purposes.</p>
|
||||
*/
|
||||
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
|
||||
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
|
||||
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
|
||||
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
|
||||
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
|
||||
inline DescribeRepositoryCreationTemplatesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
|
||||
inline DescribeRepositoryCreationTemplatesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
|
||||
inline DescribeRepositoryCreationTemplatesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The maximum number of repository results returned by
|
||||
* <code>DescribeRepositoryCreationTemplatesRequest</code> in paginated output.
|
||||
* When this parameter is used,
|
||||
* <code>DescribeRepositoryCreationTemplatesRequest</code> only returns
|
||||
* <code>maxResults</code> results in a single page along with a
|
||||
* <code>nextToken</code> response element. The remaining results of the initial
|
||||
* request can be seen by sending another
|
||||
* <code>DescribeRepositoryCreationTemplatesRequest</code> request with the
|
||||
* returned <code>nextToken</code> value. This value can be between 1 and 1000. If
|
||||
* this parameter is not used, then
|
||||
* <code>DescribeRepositoryCreationTemplatesRequest</code> returns up to 100
|
||||
* results and a <code>nextToken</code> value, if applicable.</p>
|
||||
*/
|
||||
inline int GetMaxResults() const{ return m_maxResults; }
|
||||
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
|
||||
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
|
||||
inline DescribeRepositoryCreationTemplatesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::Vector<Aws::String> m_prefixes;
|
||||
bool m_prefixesHasBeenSet = false;
|
||||
|
||||
Aws::String m_nextToken;
|
||||
bool m_nextTokenHasBeenSet = false;
|
||||
|
||||
int m_maxResults;
|
||||
bool m_maxResultsHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,104 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/core/utils/memory/stl/AWSVector.h>
|
||||
#include <aws/ecr/model/RepositoryCreationTemplate.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
template<typename RESULT_TYPE>
|
||||
class AmazonWebServiceResult;
|
||||
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class DescribeRepositoryCreationTemplatesResult
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API DescribeRepositoryCreationTemplatesResult();
|
||||
AWS_ECR_API DescribeRepositoryCreationTemplatesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
AWS_ECR_API DescribeRepositoryCreationTemplatesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The registry ID associated with the request.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRegistryId() const{ return m_registryId; }
|
||||
inline void SetRegistryId(const Aws::String& value) { m_registryId = value; }
|
||||
inline void SetRegistryId(Aws::String&& value) { m_registryId = std::move(value); }
|
||||
inline void SetRegistryId(const char* value) { m_registryId.assign(value); }
|
||||
inline DescribeRepositoryCreationTemplatesResult& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
|
||||
inline DescribeRepositoryCreationTemplatesResult& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
|
||||
inline DescribeRepositoryCreationTemplatesResult& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The details of the repository creation templates.</p>
|
||||
*/
|
||||
inline const Aws::Vector<RepositoryCreationTemplate>& GetRepositoryCreationTemplates() const{ return m_repositoryCreationTemplates; }
|
||||
inline void SetRepositoryCreationTemplates(const Aws::Vector<RepositoryCreationTemplate>& value) { m_repositoryCreationTemplates = value; }
|
||||
inline void SetRepositoryCreationTemplates(Aws::Vector<RepositoryCreationTemplate>&& value) { m_repositoryCreationTemplates = std::move(value); }
|
||||
inline DescribeRepositoryCreationTemplatesResult& WithRepositoryCreationTemplates(const Aws::Vector<RepositoryCreationTemplate>& value) { SetRepositoryCreationTemplates(value); return *this;}
|
||||
inline DescribeRepositoryCreationTemplatesResult& WithRepositoryCreationTemplates(Aws::Vector<RepositoryCreationTemplate>&& value) { SetRepositoryCreationTemplates(std::move(value)); return *this;}
|
||||
inline DescribeRepositoryCreationTemplatesResult& AddRepositoryCreationTemplates(const RepositoryCreationTemplate& value) { m_repositoryCreationTemplates.push_back(value); return *this; }
|
||||
inline DescribeRepositoryCreationTemplatesResult& AddRepositoryCreationTemplates(RepositoryCreationTemplate&& value) { m_repositoryCreationTemplates.push_back(std::move(value)); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The <code>nextToken</code> value to include in a future
|
||||
* <code>DescribeRepositoryCreationTemplates</code> request. When the results of a
|
||||
* <code>DescribeRepositoryCreationTemplates</code> request exceed
|
||||
* <code>maxResults</code>, this value can be used to retrieve the next page of
|
||||
* results. This value is <code>null</code> when there are no more results to
|
||||
* return.</p>
|
||||
*/
|
||||
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
|
||||
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
|
||||
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
|
||||
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
|
||||
inline DescribeRepositoryCreationTemplatesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
|
||||
inline DescribeRepositoryCreationTemplatesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
|
||||
inline DescribeRepositoryCreationTemplatesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetRequestId() const{ return m_requestId; }
|
||||
inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
|
||||
inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
|
||||
inline void SetRequestId(const char* value) { m_requestId.assign(value); }
|
||||
inline DescribeRepositoryCreationTemplatesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
|
||||
inline DescribeRepositoryCreationTemplatesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
|
||||
inline DescribeRepositoryCreationTemplatesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_registryId;
|
||||
|
||||
Aws::Vector<RepositoryCreationTemplate> m_repositoryCreationTemplates;
|
||||
|
||||
Aws::String m_nextToken;
|
||||
|
||||
Aws::String m_requestId;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,107 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/ecr/model/EncryptionType.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p>The encryption configuration for the repository. This determines how the
|
||||
* contents of your repository are encrypted at rest.</p> <p>By default, when no
|
||||
* encryption configuration is set or the <code>AES256</code> encryption type is
|
||||
* used, Amazon ECR uses server-side encryption with Amazon S3-managed encryption
|
||||
* keys which encrypts your data at rest using an AES256 encryption algorithm. This
|
||||
* does not require any action on your part.</p> <p>For more control over the
|
||||
* encryption of the contents of your repository, you can use server-side
|
||||
* encryption with Key Management Service key stored in Key Management Service
|
||||
* (KMS) to encrypt your images. For more information, see <a
|
||||
* href="https://docs.aws.amazon.com/AmazonECR/latest/userguide/encryption-at-rest.html">Amazon
|
||||
* ECR encryption at rest</a> in the <i>Amazon Elastic Container Registry User
|
||||
* Guide</i>.</p><p><h3>See Also:</h3> <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/EncryptionConfiguration">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class EncryptionConfiguration
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API EncryptionConfiguration();
|
||||
AWS_ECR_API EncryptionConfiguration(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_ECR_API EncryptionConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The encryption type to use.</p> <p>If you use the <code>KMS</code> encryption
|
||||
* type, the contents of the repository will be encrypted using server-side
|
||||
* encryption with Key Management Service key stored in KMS. When you use KMS to
|
||||
* encrypt your data, you can either use the default Amazon Web Services managed
|
||||
* KMS key for Amazon ECR, or specify your own KMS key, which you already
|
||||
* created.</p> <p>If you use the <code>KMS_DSSE</code> encryption type, the
|
||||
* contents of the repository will be encrypted with two layers of encryption using
|
||||
* server-side encryption with the KMS Management Service key stored in KMS.
|
||||
* Similar to the <code>KMS</code> encryption type, you can either use the default
|
||||
* Amazon Web Services managed KMS key for Amazon ECR, or specify your own KMS key,
|
||||
* which you've already created. </p> <p>If you use the <code>AES256</code>
|
||||
* encryption type, Amazon ECR uses server-side encryption with Amazon S3-managed
|
||||
* encryption keys which encrypts the images in the repository using an AES256
|
||||
* encryption algorithm.</p> <p>For more information, see <a
|
||||
* href="https://docs.aws.amazon.com/AmazonECR/latest/userguide/encryption-at-rest.html">Amazon
|
||||
* ECR encryption at rest</a> in the <i>Amazon Elastic Container Registry User
|
||||
* Guide</i>.</p>
|
||||
*/
|
||||
inline const EncryptionType& GetEncryptionType() const{ return m_encryptionType; }
|
||||
inline bool EncryptionTypeHasBeenSet() const { return m_encryptionTypeHasBeenSet; }
|
||||
inline void SetEncryptionType(const EncryptionType& value) { m_encryptionTypeHasBeenSet = true; m_encryptionType = value; }
|
||||
inline void SetEncryptionType(EncryptionType&& value) { m_encryptionTypeHasBeenSet = true; m_encryptionType = std::move(value); }
|
||||
inline EncryptionConfiguration& WithEncryptionType(const EncryptionType& value) { SetEncryptionType(value); return *this;}
|
||||
inline EncryptionConfiguration& WithEncryptionType(EncryptionType&& value) { SetEncryptionType(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>If you use the <code>KMS</code> encryption type, specify the KMS key to use
|
||||
* for encryption. The alias, key ID, or full ARN of the KMS key can be specified.
|
||||
* The key must exist in the same Region as the repository. If no key is specified,
|
||||
* the default Amazon Web Services managed KMS key for Amazon ECR will be used.</p>
|
||||
*/
|
||||
inline const Aws::String& GetKmsKey() const{ return m_kmsKey; }
|
||||
inline bool KmsKeyHasBeenSet() const { return m_kmsKeyHasBeenSet; }
|
||||
inline void SetKmsKey(const Aws::String& value) { m_kmsKeyHasBeenSet = true; m_kmsKey = value; }
|
||||
inline void SetKmsKey(Aws::String&& value) { m_kmsKeyHasBeenSet = true; m_kmsKey = std::move(value); }
|
||||
inline void SetKmsKey(const char* value) { m_kmsKeyHasBeenSet = true; m_kmsKey.assign(value); }
|
||||
inline EncryptionConfiguration& WithKmsKey(const Aws::String& value) { SetKmsKey(value); return *this;}
|
||||
inline EncryptionConfiguration& WithKmsKey(Aws::String&& value) { SetKmsKey(std::move(value)); return *this;}
|
||||
inline EncryptionConfiguration& WithKmsKey(const char* value) { SetKmsKey(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
EncryptionType m_encryptionType;
|
||||
bool m_encryptionTypeHasBeenSet = false;
|
||||
|
||||
Aws::String m_kmsKey;
|
||||
bool m_kmsKeyHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,97 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/ecr/model/EncryptionType.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p>The encryption configuration to associate with the repository creation
|
||||
* template.</p><p><h3>See Also:</h3> <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/EncryptionConfigurationForRepositoryCreationTemplate">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class EncryptionConfigurationForRepositoryCreationTemplate
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API EncryptionConfigurationForRepositoryCreationTemplate();
|
||||
AWS_ECR_API EncryptionConfigurationForRepositoryCreationTemplate(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_ECR_API EncryptionConfigurationForRepositoryCreationTemplate& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The encryption type to use.</p> <p>If you use the <code>KMS</code> encryption
|
||||
* type, the contents of the repository will be encrypted using server-side
|
||||
* encryption with Key Management Service key stored in KMS. When you use KMS to
|
||||
* encrypt your data, you can either use the default Amazon Web Services managed
|
||||
* KMS key for Amazon ECR, or specify your own KMS key, which you already created.
|
||||
* For more information, see <a
|
||||
* href="https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingKMSEncryption.html">Protecting
|
||||
* data using server-side encryption with an KMS key stored in Key Management
|
||||
* Service (SSE-KMS)</a> in the <i>Amazon Simple Storage Service Console Developer
|
||||
* Guide</i>.</p> <p>If you use the <code>AES256</code> encryption type, Amazon ECR
|
||||
* uses server-side encryption with Amazon S3-managed encryption keys which
|
||||
* encrypts the images in the repository using an AES256 encryption algorithm. For
|
||||
* more information, see <a
|
||||
* href="https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingServerSideEncryption.html">Protecting
|
||||
* data using server-side encryption with Amazon S3-managed encryption keys
|
||||
* (SSE-S3)</a> in the <i>Amazon Simple Storage Service Console Developer
|
||||
* Guide</i>.</p>
|
||||
*/
|
||||
inline const EncryptionType& GetEncryptionType() const{ return m_encryptionType; }
|
||||
inline bool EncryptionTypeHasBeenSet() const { return m_encryptionTypeHasBeenSet; }
|
||||
inline void SetEncryptionType(const EncryptionType& value) { m_encryptionTypeHasBeenSet = true; m_encryptionType = value; }
|
||||
inline void SetEncryptionType(EncryptionType&& value) { m_encryptionTypeHasBeenSet = true; m_encryptionType = std::move(value); }
|
||||
inline EncryptionConfigurationForRepositoryCreationTemplate& WithEncryptionType(const EncryptionType& value) { SetEncryptionType(value); return *this;}
|
||||
inline EncryptionConfigurationForRepositoryCreationTemplate& WithEncryptionType(EncryptionType&& value) { SetEncryptionType(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>If you use the <code>KMS</code> encryption type, specify the KMS key to use
|
||||
* for encryption. The full ARN of the KMS key must be specified. The key must
|
||||
* exist in the same Region as the repository. If no key is specified, the default
|
||||
* Amazon Web Services managed KMS key for Amazon ECR will be used.</p>
|
||||
*/
|
||||
inline const Aws::String& GetKmsKey() const{ return m_kmsKey; }
|
||||
inline bool KmsKeyHasBeenSet() const { return m_kmsKeyHasBeenSet; }
|
||||
inline void SetKmsKey(const Aws::String& value) { m_kmsKeyHasBeenSet = true; m_kmsKey = value; }
|
||||
inline void SetKmsKey(Aws::String&& value) { m_kmsKeyHasBeenSet = true; m_kmsKey = std::move(value); }
|
||||
inline void SetKmsKey(const char* value) { m_kmsKeyHasBeenSet = true; m_kmsKey.assign(value); }
|
||||
inline EncryptionConfigurationForRepositoryCreationTemplate& WithKmsKey(const Aws::String& value) { SetKmsKey(value); return *this;}
|
||||
inline EncryptionConfigurationForRepositoryCreationTemplate& WithKmsKey(Aws::String&& value) { SetKmsKey(std::move(value)); return *this;}
|
||||
inline EncryptionConfigurationForRepositoryCreationTemplate& WithKmsKey(const char* value) { SetKmsKey(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
EncryptionType m_encryptionType;
|
||||
bool m_encryptionTypeHasBeenSet = false;
|
||||
|
||||
Aws::String m_kmsKey;
|
||||
bool m_kmsKeyHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,32 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
enum class EncryptionType
|
||||
{
|
||||
NOT_SET,
|
||||
AES256,
|
||||
KMS,
|
||||
KMS_DSSE
|
||||
};
|
||||
|
||||
namespace EncryptionTypeMapper
|
||||
{
|
||||
AWS_ECR_API EncryptionType GetEncryptionTypeForName(const Aws::String& name);
|
||||
|
||||
AWS_ECR_API Aws::String GetNameForEncryptionType(EncryptionType value);
|
||||
} // namespace EncryptionTypeMapper
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,327 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/core/utils/DateTime.h>
|
||||
#include <aws/ecr/model/PackageVulnerabilityDetails.h>
|
||||
#include <aws/ecr/model/Remediation.h>
|
||||
#include <aws/core/utils/memory/stl/AWSVector.h>
|
||||
#include <aws/ecr/model/ScoreDetails.h>
|
||||
#include <aws/ecr/model/Resource.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p>The details of an enhanced image scan. This is returned when enhanced
|
||||
* scanning is enabled for your private registry.</p><p><h3>See Also:</h3> <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/EnhancedImageScanFinding">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class EnhancedImageScanFinding
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API EnhancedImageScanFinding();
|
||||
AWS_ECR_API EnhancedImageScanFinding(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_ECR_API EnhancedImageScanFinding& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The Amazon Web Services account ID associated with the image.</p>
|
||||
*/
|
||||
inline const Aws::String& GetAwsAccountId() const{ return m_awsAccountId; }
|
||||
inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
|
||||
inline void SetAwsAccountId(const Aws::String& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = value; }
|
||||
inline void SetAwsAccountId(Aws::String&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::move(value); }
|
||||
inline void SetAwsAccountId(const char* value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId.assign(value); }
|
||||
inline EnhancedImageScanFinding& WithAwsAccountId(const Aws::String& value) { SetAwsAccountId(value); return *this;}
|
||||
inline EnhancedImageScanFinding& WithAwsAccountId(Aws::String&& value) { SetAwsAccountId(std::move(value)); return *this;}
|
||||
inline EnhancedImageScanFinding& WithAwsAccountId(const char* value) { SetAwsAccountId(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The description of the finding.</p>
|
||||
*/
|
||||
inline const Aws::String& GetDescription() const{ return m_description; }
|
||||
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
|
||||
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
|
||||
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
|
||||
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
|
||||
inline EnhancedImageScanFinding& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
|
||||
inline EnhancedImageScanFinding& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
|
||||
inline EnhancedImageScanFinding& WithDescription(const char* value) { SetDescription(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The Amazon Resource Number (ARN) of the finding.</p>
|
||||
*/
|
||||
inline const Aws::String& GetFindingArn() const{ return m_findingArn; }
|
||||
inline bool FindingArnHasBeenSet() const { return m_findingArnHasBeenSet; }
|
||||
inline void SetFindingArn(const Aws::String& value) { m_findingArnHasBeenSet = true; m_findingArn = value; }
|
||||
inline void SetFindingArn(Aws::String&& value) { m_findingArnHasBeenSet = true; m_findingArn = std::move(value); }
|
||||
inline void SetFindingArn(const char* value) { m_findingArnHasBeenSet = true; m_findingArn.assign(value); }
|
||||
inline EnhancedImageScanFinding& WithFindingArn(const Aws::String& value) { SetFindingArn(value); return *this;}
|
||||
inline EnhancedImageScanFinding& WithFindingArn(Aws::String&& value) { SetFindingArn(std::move(value)); return *this;}
|
||||
inline EnhancedImageScanFinding& WithFindingArn(const char* value) { SetFindingArn(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The date and time that the finding was first observed.</p>
|
||||
*/
|
||||
inline const Aws::Utils::DateTime& GetFirstObservedAt() const{ return m_firstObservedAt; }
|
||||
inline bool FirstObservedAtHasBeenSet() const { return m_firstObservedAtHasBeenSet; }
|
||||
inline void SetFirstObservedAt(const Aws::Utils::DateTime& value) { m_firstObservedAtHasBeenSet = true; m_firstObservedAt = value; }
|
||||
inline void SetFirstObservedAt(Aws::Utils::DateTime&& value) { m_firstObservedAtHasBeenSet = true; m_firstObservedAt = std::move(value); }
|
||||
inline EnhancedImageScanFinding& WithFirstObservedAt(const Aws::Utils::DateTime& value) { SetFirstObservedAt(value); return *this;}
|
||||
inline EnhancedImageScanFinding& WithFirstObservedAt(Aws::Utils::DateTime&& value) { SetFirstObservedAt(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The date and time that the finding was last observed.</p>
|
||||
*/
|
||||
inline const Aws::Utils::DateTime& GetLastObservedAt() const{ return m_lastObservedAt; }
|
||||
inline bool LastObservedAtHasBeenSet() const { return m_lastObservedAtHasBeenSet; }
|
||||
inline void SetLastObservedAt(const Aws::Utils::DateTime& value) { m_lastObservedAtHasBeenSet = true; m_lastObservedAt = value; }
|
||||
inline void SetLastObservedAt(Aws::Utils::DateTime&& value) { m_lastObservedAtHasBeenSet = true; m_lastObservedAt = std::move(value); }
|
||||
inline EnhancedImageScanFinding& WithLastObservedAt(const Aws::Utils::DateTime& value) { SetLastObservedAt(value); return *this;}
|
||||
inline EnhancedImageScanFinding& WithLastObservedAt(Aws::Utils::DateTime&& value) { SetLastObservedAt(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>An object that contains the details of a package vulnerability finding.</p>
|
||||
*/
|
||||
inline const PackageVulnerabilityDetails& GetPackageVulnerabilityDetails() const{ return m_packageVulnerabilityDetails; }
|
||||
inline bool PackageVulnerabilityDetailsHasBeenSet() const { return m_packageVulnerabilityDetailsHasBeenSet; }
|
||||
inline void SetPackageVulnerabilityDetails(const PackageVulnerabilityDetails& value) { m_packageVulnerabilityDetailsHasBeenSet = true; m_packageVulnerabilityDetails = value; }
|
||||
inline void SetPackageVulnerabilityDetails(PackageVulnerabilityDetails&& value) { m_packageVulnerabilityDetailsHasBeenSet = true; m_packageVulnerabilityDetails = std::move(value); }
|
||||
inline EnhancedImageScanFinding& WithPackageVulnerabilityDetails(const PackageVulnerabilityDetails& value) { SetPackageVulnerabilityDetails(value); return *this;}
|
||||
inline EnhancedImageScanFinding& WithPackageVulnerabilityDetails(PackageVulnerabilityDetails&& value) { SetPackageVulnerabilityDetails(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>An object that contains the details about how to remediate a finding.</p>
|
||||
*/
|
||||
inline const Remediation& GetRemediation() const{ return m_remediation; }
|
||||
inline bool RemediationHasBeenSet() const { return m_remediationHasBeenSet; }
|
||||
inline void SetRemediation(const Remediation& value) { m_remediationHasBeenSet = true; m_remediation = value; }
|
||||
inline void SetRemediation(Remediation&& value) { m_remediationHasBeenSet = true; m_remediation = std::move(value); }
|
||||
inline EnhancedImageScanFinding& WithRemediation(const Remediation& value) { SetRemediation(value); return *this;}
|
||||
inline EnhancedImageScanFinding& WithRemediation(Remediation&& value) { SetRemediation(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>Contains information on the resources involved in a finding.</p>
|
||||
*/
|
||||
inline const Aws::Vector<Resource>& GetResources() const{ return m_resources; }
|
||||
inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
|
||||
inline void SetResources(const Aws::Vector<Resource>& value) { m_resourcesHasBeenSet = true; m_resources = value; }
|
||||
inline void SetResources(Aws::Vector<Resource>&& value) { m_resourcesHasBeenSet = true; m_resources = std::move(value); }
|
||||
inline EnhancedImageScanFinding& WithResources(const Aws::Vector<Resource>& value) { SetResources(value); return *this;}
|
||||
inline EnhancedImageScanFinding& WithResources(Aws::Vector<Resource>&& value) { SetResources(std::move(value)); return *this;}
|
||||
inline EnhancedImageScanFinding& AddResources(const Resource& value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; }
|
||||
inline EnhancedImageScanFinding& AddResources(Resource&& value) { m_resourcesHasBeenSet = true; m_resources.push_back(std::move(value)); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The Amazon Inspector score given to the finding.</p>
|
||||
*/
|
||||
inline double GetScore() const{ return m_score; }
|
||||
inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; }
|
||||
inline void SetScore(double value) { m_scoreHasBeenSet = true; m_score = value; }
|
||||
inline EnhancedImageScanFinding& WithScore(double value) { SetScore(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>An object that contains details of the Amazon Inspector score.</p>
|
||||
*/
|
||||
inline const ScoreDetails& GetScoreDetails() const{ return m_scoreDetails; }
|
||||
inline bool ScoreDetailsHasBeenSet() const { return m_scoreDetailsHasBeenSet; }
|
||||
inline void SetScoreDetails(const ScoreDetails& value) { m_scoreDetailsHasBeenSet = true; m_scoreDetails = value; }
|
||||
inline void SetScoreDetails(ScoreDetails&& value) { m_scoreDetailsHasBeenSet = true; m_scoreDetails = std::move(value); }
|
||||
inline EnhancedImageScanFinding& WithScoreDetails(const ScoreDetails& value) { SetScoreDetails(value); return *this;}
|
||||
inline EnhancedImageScanFinding& WithScoreDetails(ScoreDetails&& value) { SetScoreDetails(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The severity of the finding.</p>
|
||||
*/
|
||||
inline const Aws::String& GetSeverity() const{ return m_severity; }
|
||||
inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
|
||||
inline void SetSeverity(const Aws::String& value) { m_severityHasBeenSet = true; m_severity = value; }
|
||||
inline void SetSeverity(Aws::String&& value) { m_severityHasBeenSet = true; m_severity = std::move(value); }
|
||||
inline void SetSeverity(const char* value) { m_severityHasBeenSet = true; m_severity.assign(value); }
|
||||
inline EnhancedImageScanFinding& WithSeverity(const Aws::String& value) { SetSeverity(value); return *this;}
|
||||
inline EnhancedImageScanFinding& WithSeverity(Aws::String&& value) { SetSeverity(std::move(value)); return *this;}
|
||||
inline EnhancedImageScanFinding& WithSeverity(const char* value) { SetSeverity(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The status of the finding.</p>
|
||||
*/
|
||||
inline const Aws::String& GetStatus() const{ return m_status; }
|
||||
inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
|
||||
inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
|
||||
inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
|
||||
inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
|
||||
inline EnhancedImageScanFinding& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
|
||||
inline EnhancedImageScanFinding& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
|
||||
inline EnhancedImageScanFinding& WithStatus(const char* value) { SetStatus(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The title of the finding.</p>
|
||||
*/
|
||||
inline const Aws::String& GetTitle() const{ return m_title; }
|
||||
inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
|
||||
inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; }
|
||||
inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
|
||||
inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); }
|
||||
inline EnhancedImageScanFinding& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
|
||||
inline EnhancedImageScanFinding& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
|
||||
inline EnhancedImageScanFinding& WithTitle(const char* value) { SetTitle(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The type of the finding.</p>
|
||||
*/
|
||||
inline const Aws::String& GetType() const{ return m_type; }
|
||||
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
|
||||
inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
|
||||
inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
|
||||
inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
|
||||
inline EnhancedImageScanFinding& WithType(const Aws::String& value) { SetType(value); return *this;}
|
||||
inline EnhancedImageScanFinding& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
|
||||
inline EnhancedImageScanFinding& WithType(const char* value) { SetType(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The date and time the finding was last updated at.</p>
|
||||
*/
|
||||
inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
|
||||
inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
|
||||
inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; }
|
||||
inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); }
|
||||
inline EnhancedImageScanFinding& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
|
||||
inline EnhancedImageScanFinding& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>Details on whether a fix is available through a version update. This value
|
||||
* can be <code>YES</code>, <code>NO</code>, or <code>PARTIAL</code>. A
|
||||
* <code>PARTIAL</code> fix means that some, but not all, of the packages
|
||||
* identified in the finding have fixes available through updated versions.</p>
|
||||
*/
|
||||
inline const Aws::String& GetFixAvailable() const{ return m_fixAvailable; }
|
||||
inline bool FixAvailableHasBeenSet() const { return m_fixAvailableHasBeenSet; }
|
||||
inline void SetFixAvailable(const Aws::String& value) { m_fixAvailableHasBeenSet = true; m_fixAvailable = value; }
|
||||
inline void SetFixAvailable(Aws::String&& value) { m_fixAvailableHasBeenSet = true; m_fixAvailable = std::move(value); }
|
||||
inline void SetFixAvailable(const char* value) { m_fixAvailableHasBeenSet = true; m_fixAvailable.assign(value); }
|
||||
inline EnhancedImageScanFinding& WithFixAvailable(const Aws::String& value) { SetFixAvailable(value); return *this;}
|
||||
inline EnhancedImageScanFinding& WithFixAvailable(Aws::String&& value) { SetFixAvailable(std::move(value)); return *this;}
|
||||
inline EnhancedImageScanFinding& WithFixAvailable(const char* value) { SetFixAvailable(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>If a finding discovered in your environment has an exploit available.</p>
|
||||
*/
|
||||
inline const Aws::String& GetExploitAvailable() const{ return m_exploitAvailable; }
|
||||
inline bool ExploitAvailableHasBeenSet() const { return m_exploitAvailableHasBeenSet; }
|
||||
inline void SetExploitAvailable(const Aws::String& value) { m_exploitAvailableHasBeenSet = true; m_exploitAvailable = value; }
|
||||
inline void SetExploitAvailable(Aws::String&& value) { m_exploitAvailableHasBeenSet = true; m_exploitAvailable = std::move(value); }
|
||||
inline void SetExploitAvailable(const char* value) { m_exploitAvailableHasBeenSet = true; m_exploitAvailable.assign(value); }
|
||||
inline EnhancedImageScanFinding& WithExploitAvailable(const Aws::String& value) { SetExploitAvailable(value); return *this;}
|
||||
inline EnhancedImageScanFinding& WithExploitAvailable(Aws::String&& value) { SetExploitAvailable(std::move(value)); return *this;}
|
||||
inline EnhancedImageScanFinding& WithExploitAvailable(const char* value) { SetExploitAvailable(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_awsAccountId;
|
||||
bool m_awsAccountIdHasBeenSet = false;
|
||||
|
||||
Aws::String m_description;
|
||||
bool m_descriptionHasBeenSet = false;
|
||||
|
||||
Aws::String m_findingArn;
|
||||
bool m_findingArnHasBeenSet = false;
|
||||
|
||||
Aws::Utils::DateTime m_firstObservedAt;
|
||||
bool m_firstObservedAtHasBeenSet = false;
|
||||
|
||||
Aws::Utils::DateTime m_lastObservedAt;
|
||||
bool m_lastObservedAtHasBeenSet = false;
|
||||
|
||||
PackageVulnerabilityDetails m_packageVulnerabilityDetails;
|
||||
bool m_packageVulnerabilityDetailsHasBeenSet = false;
|
||||
|
||||
Remediation m_remediation;
|
||||
bool m_remediationHasBeenSet = false;
|
||||
|
||||
Aws::Vector<Resource> m_resources;
|
||||
bool m_resourcesHasBeenSet = false;
|
||||
|
||||
double m_score;
|
||||
bool m_scoreHasBeenSet = false;
|
||||
|
||||
ScoreDetails m_scoreDetails;
|
||||
bool m_scoreDetailsHasBeenSet = false;
|
||||
|
||||
Aws::String m_severity;
|
||||
bool m_severityHasBeenSet = false;
|
||||
|
||||
Aws::String m_status;
|
||||
bool m_statusHasBeenSet = false;
|
||||
|
||||
Aws::String m_title;
|
||||
bool m_titleHasBeenSet = false;
|
||||
|
||||
Aws::String m_type;
|
||||
bool m_typeHasBeenSet = false;
|
||||
|
||||
Aws::Utils::DateTime m_updatedAt;
|
||||
bool m_updatedAtHasBeenSet = false;
|
||||
|
||||
Aws::String m_fixAvailable;
|
||||
bool m_fixAvailableHasBeenSet = false;
|
||||
|
||||
Aws::String m_exploitAvailable;
|
||||
bool m_exploitAvailableHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,35 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
enum class FindingSeverity
|
||||
{
|
||||
NOT_SET,
|
||||
INFORMATIONAL,
|
||||
LOW,
|
||||
MEDIUM,
|
||||
HIGH,
|
||||
CRITICAL,
|
||||
UNDEFINED
|
||||
};
|
||||
|
||||
namespace FindingSeverityMapper
|
||||
{
|
||||
AWS_ECR_API FindingSeverity GetFindingSeverityForName(const Aws::String& name);
|
||||
|
||||
AWS_ECR_API Aws::String GetNameForFindingSeverity(FindingSeverity value);
|
||||
} // namespace FindingSeverityMapper
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,58 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/ecr/ECRRequest.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
*/
|
||||
class GetAccountSettingRequest : public ECRRequest
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API GetAccountSettingRequest();
|
||||
|
||||
// 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 "GetAccountSetting"; }
|
||||
|
||||
AWS_ECR_API Aws::String SerializePayload() const override;
|
||||
|
||||
AWS_ECR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>Basic scan type version name. </p>
|
||||
*/
|
||||
inline const Aws::String& GetName() const{ return m_name; }
|
||||
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
|
||||
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
|
||||
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
|
||||
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
|
||||
inline GetAccountSettingRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
|
||||
inline GetAccountSettingRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
|
||||
inline GetAccountSettingRequest& WithName(const char* value) { SetName(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_name;
|
||||
bool m_nameHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,83 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
template<typename RESULT_TYPE>
|
||||
class AmazonWebServiceResult;
|
||||
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class GetAccountSettingResult
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API GetAccountSettingResult();
|
||||
AWS_ECR_API GetAccountSettingResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
AWS_ECR_API GetAccountSettingResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>Retrieves the basic scan type version name.</p>
|
||||
*/
|
||||
inline const Aws::String& GetName() const{ return m_name; }
|
||||
inline void SetName(const Aws::String& value) { m_name = value; }
|
||||
inline void SetName(Aws::String&& value) { m_name = std::move(value); }
|
||||
inline void SetName(const char* value) { m_name.assign(value); }
|
||||
inline GetAccountSettingResult& WithName(const Aws::String& value) { SetName(value); return *this;}
|
||||
inline GetAccountSettingResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
|
||||
inline GetAccountSettingResult& WithName(const char* value) { SetName(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>Retrieves the value that specifies what basic scan type is being used:
|
||||
* <code>AWS_NATIVE</code> or <code>CLAIR</code>.</p>
|
||||
*/
|
||||
inline const Aws::String& GetValue() const{ return m_value; }
|
||||
inline void SetValue(const Aws::String& value) { m_value = value; }
|
||||
inline void SetValue(Aws::String&& value) { m_value = std::move(value); }
|
||||
inline void SetValue(const char* value) { m_value.assign(value); }
|
||||
inline GetAccountSettingResult& WithValue(const Aws::String& value) { SetValue(value); return *this;}
|
||||
inline GetAccountSettingResult& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
|
||||
inline GetAccountSettingResult& WithValue(const char* value) { SetValue(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetRequestId() const{ return m_requestId; }
|
||||
inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
|
||||
inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
|
||||
inline void SetRequestId(const char* value) { m_requestId.assign(value); }
|
||||
inline GetAccountSettingResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
|
||||
inline GetAccountSettingResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
|
||||
inline GetAccountSettingResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_name;
|
||||
|
||||
Aws::String m_value;
|
||||
|
||||
Aws::String m_requestId;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,38 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/ecr/ECRRequest.h>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
*/
|
||||
class GetAuthorizationTokenRequest : public ECRRequest
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API GetAuthorizationTokenRequest();
|
||||
|
||||
// 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 "GetAuthorizationToken"; }
|
||||
|
||||
AWS_ECR_API Aws::String SerializePayload() const override;
|
||||
|
||||
AWS_ECR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
|
||||
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,70 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSVector.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/ecr/model/AuthorizationData.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
template<typename RESULT_TYPE>
|
||||
class AmazonWebServiceResult;
|
||||
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class GetAuthorizationTokenResult
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API GetAuthorizationTokenResult();
|
||||
AWS_ECR_API GetAuthorizationTokenResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
AWS_ECR_API GetAuthorizationTokenResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>A list of authorization token data objects that correspond to the
|
||||
* <code>registryIds</code> values in the request.</p>
|
||||
*/
|
||||
inline const Aws::Vector<AuthorizationData>& GetAuthorizationData() const{ return m_authorizationData; }
|
||||
inline void SetAuthorizationData(const Aws::Vector<AuthorizationData>& value) { m_authorizationData = value; }
|
||||
inline void SetAuthorizationData(Aws::Vector<AuthorizationData>&& value) { m_authorizationData = std::move(value); }
|
||||
inline GetAuthorizationTokenResult& WithAuthorizationData(const Aws::Vector<AuthorizationData>& value) { SetAuthorizationData(value); return *this;}
|
||||
inline GetAuthorizationTokenResult& WithAuthorizationData(Aws::Vector<AuthorizationData>&& value) { SetAuthorizationData(std::move(value)); return *this;}
|
||||
inline GetAuthorizationTokenResult& AddAuthorizationData(const AuthorizationData& value) { m_authorizationData.push_back(value); return *this; }
|
||||
inline GetAuthorizationTokenResult& AddAuthorizationData(AuthorizationData&& value) { m_authorizationData.push_back(std::move(value)); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetRequestId() const{ return m_requestId; }
|
||||
inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
|
||||
inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
|
||||
inline void SetRequestId(const char* value) { m_requestId.assign(value); }
|
||||
inline GetAuthorizationTokenResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
|
||||
inline GetAuthorizationTokenResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
|
||||
inline GetAuthorizationTokenResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::Vector<AuthorizationData> m_authorizationData;
|
||||
|
||||
Aws::String m_requestId;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,95 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/ecr/ECRRequest.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
*/
|
||||
class GetDownloadUrlForLayerRequest : public ECRRequest
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API GetDownloadUrlForLayerRequest();
|
||||
|
||||
// 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 "GetDownloadUrlForLayer"; }
|
||||
|
||||
AWS_ECR_API Aws::String SerializePayload() const override;
|
||||
|
||||
AWS_ECR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The Amazon Web Services account ID associated with the registry that contains
|
||||
* the image layer to download. If you do not specify a registry, the default
|
||||
* registry is assumed.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRegistryId() const{ return m_registryId; }
|
||||
inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
|
||||
inline void SetRegistryId(const Aws::String& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
|
||||
inline void SetRegistryId(Aws::String&& value) { m_registryIdHasBeenSet = true; m_registryId = std::move(value); }
|
||||
inline void SetRegistryId(const char* value) { m_registryIdHasBeenSet = true; m_registryId.assign(value); }
|
||||
inline GetDownloadUrlForLayerRequest& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
|
||||
inline GetDownloadUrlForLayerRequest& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
|
||||
inline GetDownloadUrlForLayerRequest& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The name of the repository that is associated with the image layer to
|
||||
* download.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
|
||||
inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
|
||||
inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
|
||||
inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
|
||||
inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
|
||||
inline GetDownloadUrlForLayerRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
|
||||
inline GetDownloadUrlForLayerRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
|
||||
inline GetDownloadUrlForLayerRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The digest of the image layer to download.</p>
|
||||
*/
|
||||
inline const Aws::String& GetLayerDigest() const{ return m_layerDigest; }
|
||||
inline bool LayerDigestHasBeenSet() const { return m_layerDigestHasBeenSet; }
|
||||
inline void SetLayerDigest(const Aws::String& value) { m_layerDigestHasBeenSet = true; m_layerDigest = value; }
|
||||
inline void SetLayerDigest(Aws::String&& value) { m_layerDigestHasBeenSet = true; m_layerDigest = std::move(value); }
|
||||
inline void SetLayerDigest(const char* value) { m_layerDigestHasBeenSet = true; m_layerDigest.assign(value); }
|
||||
inline GetDownloadUrlForLayerRequest& WithLayerDigest(const Aws::String& value) { SetLayerDigest(value); return *this;}
|
||||
inline GetDownloadUrlForLayerRequest& WithLayerDigest(Aws::String&& value) { SetLayerDigest(std::move(value)); return *this;}
|
||||
inline GetDownloadUrlForLayerRequest& WithLayerDigest(const char* value) { SetLayerDigest(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_registryId;
|
||||
bool m_registryIdHasBeenSet = false;
|
||||
|
||||
Aws::String m_repositoryName;
|
||||
bool m_repositoryNameHasBeenSet = false;
|
||||
|
||||
Aws::String m_layerDigest;
|
||||
bool m_layerDigestHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,82 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
template<typename RESULT_TYPE>
|
||||
class AmazonWebServiceResult;
|
||||
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class GetDownloadUrlForLayerResult
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API GetDownloadUrlForLayerResult();
|
||||
AWS_ECR_API GetDownloadUrlForLayerResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
AWS_ECR_API GetDownloadUrlForLayerResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The pre-signed Amazon S3 download URL for the requested layer.</p>
|
||||
*/
|
||||
inline const Aws::String& GetDownloadUrl() const{ return m_downloadUrl; }
|
||||
inline void SetDownloadUrl(const Aws::String& value) { m_downloadUrl = value; }
|
||||
inline void SetDownloadUrl(Aws::String&& value) { m_downloadUrl = std::move(value); }
|
||||
inline void SetDownloadUrl(const char* value) { m_downloadUrl.assign(value); }
|
||||
inline GetDownloadUrlForLayerResult& WithDownloadUrl(const Aws::String& value) { SetDownloadUrl(value); return *this;}
|
||||
inline GetDownloadUrlForLayerResult& WithDownloadUrl(Aws::String&& value) { SetDownloadUrl(std::move(value)); return *this;}
|
||||
inline GetDownloadUrlForLayerResult& WithDownloadUrl(const char* value) { SetDownloadUrl(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The digest of the image layer to download.</p>
|
||||
*/
|
||||
inline const Aws::String& GetLayerDigest() const{ return m_layerDigest; }
|
||||
inline void SetLayerDigest(const Aws::String& value) { m_layerDigest = value; }
|
||||
inline void SetLayerDigest(Aws::String&& value) { m_layerDigest = std::move(value); }
|
||||
inline void SetLayerDigest(const char* value) { m_layerDigest.assign(value); }
|
||||
inline GetDownloadUrlForLayerResult& WithLayerDigest(const Aws::String& value) { SetLayerDigest(value); return *this;}
|
||||
inline GetDownloadUrlForLayerResult& WithLayerDigest(Aws::String&& value) { SetLayerDigest(std::move(value)); return *this;}
|
||||
inline GetDownloadUrlForLayerResult& WithLayerDigest(const char* value) { SetLayerDigest(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetRequestId() const{ return m_requestId; }
|
||||
inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
|
||||
inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
|
||||
inline void SetRequestId(const char* value) { m_requestId.assign(value); }
|
||||
inline GetDownloadUrlForLayerResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
|
||||
inline GetDownloadUrlForLayerResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
|
||||
inline GetDownloadUrlForLayerResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_downloadUrl;
|
||||
|
||||
Aws::String m_layerDigest;
|
||||
|
||||
Aws::String m_requestId;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,160 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/ecr/ECRRequest.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/core/utils/memory/stl/AWSVector.h>
|
||||
#include <aws/ecr/model/LifecyclePolicyPreviewFilter.h>
|
||||
#include <aws/ecr/model/ImageIdentifier.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
*/
|
||||
class GetLifecyclePolicyPreviewRequest : public ECRRequest
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API GetLifecyclePolicyPreviewRequest();
|
||||
|
||||
// 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 "GetLifecyclePolicyPreview"; }
|
||||
|
||||
AWS_ECR_API Aws::String SerializePayload() const override;
|
||||
|
||||
AWS_ECR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The Amazon Web Services account ID associated with the registry that contains
|
||||
* the repository. If you do not specify a registry, the default registry is
|
||||
* assumed.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRegistryId() const{ return m_registryId; }
|
||||
inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
|
||||
inline void SetRegistryId(const Aws::String& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
|
||||
inline void SetRegistryId(Aws::String&& value) { m_registryIdHasBeenSet = true; m_registryId = std::move(value); }
|
||||
inline void SetRegistryId(const char* value) { m_registryIdHasBeenSet = true; m_registryId.assign(value); }
|
||||
inline GetLifecyclePolicyPreviewRequest& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
|
||||
inline GetLifecyclePolicyPreviewRequest& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
|
||||
inline GetLifecyclePolicyPreviewRequest& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The name of the repository.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
|
||||
inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
|
||||
inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
|
||||
inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
|
||||
inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
|
||||
inline GetLifecyclePolicyPreviewRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
|
||||
inline GetLifecyclePolicyPreviewRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
|
||||
inline GetLifecyclePolicyPreviewRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The list of imageIDs to be included.</p>
|
||||
*/
|
||||
inline const Aws::Vector<ImageIdentifier>& GetImageIds() const{ return m_imageIds; }
|
||||
inline bool ImageIdsHasBeenSet() const { return m_imageIdsHasBeenSet; }
|
||||
inline void SetImageIds(const Aws::Vector<ImageIdentifier>& value) { m_imageIdsHasBeenSet = true; m_imageIds = value; }
|
||||
inline void SetImageIds(Aws::Vector<ImageIdentifier>&& value) { m_imageIdsHasBeenSet = true; m_imageIds = std::move(value); }
|
||||
inline GetLifecyclePolicyPreviewRequest& WithImageIds(const Aws::Vector<ImageIdentifier>& value) { SetImageIds(value); return *this;}
|
||||
inline GetLifecyclePolicyPreviewRequest& WithImageIds(Aws::Vector<ImageIdentifier>&& value) { SetImageIds(std::move(value)); return *this;}
|
||||
inline GetLifecyclePolicyPreviewRequest& AddImageIds(const ImageIdentifier& value) { m_imageIdsHasBeenSet = true; m_imageIds.push_back(value); return *this; }
|
||||
inline GetLifecyclePolicyPreviewRequest& AddImageIds(ImageIdentifier&& value) { m_imageIdsHasBeenSet = true; m_imageIds.push_back(std::move(value)); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The <code>nextToken</code> value returned from a previous paginated

|
||||
* <code>GetLifecyclePolicyPreviewRequest</code> request where
|
||||
* <code>maxResults</code> was used and the
 results exceeded the value of
|
||||
* that parameter. Pagination continues from the end of the
 previous
|
||||
* results that returned the <code>nextToken</code> value. This value is

|
||||
* <code>null</code> when there are no more results to return. This option cannot
|
||||
* be used when you specify images with <code>imageIds</code>.</p>
|
||||
*/
|
||||
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
|
||||
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
|
||||
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
|
||||
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
|
||||
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
|
||||
inline GetLifecyclePolicyPreviewRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
|
||||
inline GetLifecyclePolicyPreviewRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
|
||||
inline GetLifecyclePolicyPreviewRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The maximum number of repository results returned by
|
||||
* <code>GetLifecyclePolicyPreviewRequest</code> in
 paginated output. When
|
||||
* this parameter is used, <code>GetLifecyclePolicyPreviewRequest</code> only
|
||||
* returns
 <code>maxResults</code> results in a single page along with a
|
||||
* <code>nextToken</code>
 response element. The remaining results of the
|
||||
* initial request can be seen by sending
 another
|
||||
* <code>GetLifecyclePolicyPreviewRequest</code> request with the returned
|
||||
* <code>nextToken</code>
 value. This value can be between 1 and 1000. If
|
||||
* this
 parameter is not used, then
|
||||
* <code>GetLifecyclePolicyPreviewRequest</code> returns up to
 100 results
|
||||
* and a <code>nextToken</code> value, if
 applicable. This option cannot be
|
||||
* used when you specify images with <code>imageIds</code>.</p>
|
||||
*/
|
||||
inline int GetMaxResults() const{ return m_maxResults; }
|
||||
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
|
||||
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
|
||||
inline GetLifecyclePolicyPreviewRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>An optional parameter that filters results based on image tag status and all
|
||||
* tags, if tagged.</p>
|
||||
*/
|
||||
inline const LifecyclePolicyPreviewFilter& GetFilter() const{ return m_filter; }
|
||||
inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
|
||||
inline void SetFilter(const LifecyclePolicyPreviewFilter& value) { m_filterHasBeenSet = true; m_filter = value; }
|
||||
inline void SetFilter(LifecyclePolicyPreviewFilter&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
|
||||
inline GetLifecyclePolicyPreviewRequest& WithFilter(const LifecyclePolicyPreviewFilter& value) { SetFilter(value); return *this;}
|
||||
inline GetLifecyclePolicyPreviewRequest& WithFilter(LifecyclePolicyPreviewFilter&& value) { SetFilter(std::move(value)); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_registryId;
|
||||
bool m_registryIdHasBeenSet = false;
|
||||
|
||||
Aws::String m_repositoryName;
|
||||
bool m_repositoryNameHasBeenSet = false;
|
||||
|
||||
Aws::Vector<ImageIdentifier> m_imageIds;
|
||||
bool m_imageIdsHasBeenSet = false;
|
||||
|
||||
Aws::String m_nextToken;
|
||||
bool m_nextTokenHasBeenSet = false;
|
||||
|
||||
int m_maxResults;
|
||||
bool m_maxResultsHasBeenSet = false;
|
||||
|
||||
LifecyclePolicyPreviewFilter m_filter;
|
||||
bool m_filterHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,161 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/ecr/model/LifecyclePolicyPreviewStatus.h>
|
||||
#include <aws/core/utils/memory/stl/AWSVector.h>
|
||||
#include <aws/ecr/model/LifecyclePolicyPreviewSummary.h>
|
||||
#include <aws/ecr/model/LifecyclePolicyPreviewResult.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
template<typename RESULT_TYPE>
|
||||
class AmazonWebServiceResult;
|
||||
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class GetLifecyclePolicyPreviewResult
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API GetLifecyclePolicyPreviewResult();
|
||||
AWS_ECR_API GetLifecyclePolicyPreviewResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
AWS_ECR_API GetLifecyclePolicyPreviewResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The registry ID associated with the request.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRegistryId() const{ return m_registryId; }
|
||||
inline void SetRegistryId(const Aws::String& value) { m_registryId = value; }
|
||||
inline void SetRegistryId(Aws::String&& value) { m_registryId = std::move(value); }
|
||||
inline void SetRegistryId(const char* value) { m_registryId.assign(value); }
|
||||
inline GetLifecyclePolicyPreviewResult& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
|
||||
inline GetLifecyclePolicyPreviewResult& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
|
||||
inline GetLifecyclePolicyPreviewResult& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The repository name associated with the request.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
|
||||
inline void SetRepositoryName(const Aws::String& value) { m_repositoryName = value; }
|
||||
inline void SetRepositoryName(Aws::String&& value) { m_repositoryName = std::move(value); }
|
||||
inline void SetRepositoryName(const char* value) { m_repositoryName.assign(value); }
|
||||
inline GetLifecyclePolicyPreviewResult& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
|
||||
inline GetLifecyclePolicyPreviewResult& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
|
||||
inline GetLifecyclePolicyPreviewResult& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The JSON lifecycle policy text.</p>
|
||||
*/
|
||||
inline const Aws::String& GetLifecyclePolicyText() const{ return m_lifecyclePolicyText; }
|
||||
inline void SetLifecyclePolicyText(const Aws::String& value) { m_lifecyclePolicyText = value; }
|
||||
inline void SetLifecyclePolicyText(Aws::String&& value) { m_lifecyclePolicyText = std::move(value); }
|
||||
inline void SetLifecyclePolicyText(const char* value) { m_lifecyclePolicyText.assign(value); }
|
||||
inline GetLifecyclePolicyPreviewResult& WithLifecyclePolicyText(const Aws::String& value) { SetLifecyclePolicyText(value); return *this;}
|
||||
inline GetLifecyclePolicyPreviewResult& WithLifecyclePolicyText(Aws::String&& value) { SetLifecyclePolicyText(std::move(value)); return *this;}
|
||||
inline GetLifecyclePolicyPreviewResult& WithLifecyclePolicyText(const char* value) { SetLifecyclePolicyText(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The status of the lifecycle policy preview request.</p>
|
||||
*/
|
||||
inline const LifecyclePolicyPreviewStatus& GetStatus() const{ return m_status; }
|
||||
inline void SetStatus(const LifecyclePolicyPreviewStatus& value) { m_status = value; }
|
||||
inline void SetStatus(LifecyclePolicyPreviewStatus&& value) { m_status = std::move(value); }
|
||||
inline GetLifecyclePolicyPreviewResult& WithStatus(const LifecyclePolicyPreviewStatus& value) { SetStatus(value); return *this;}
|
||||
inline GetLifecyclePolicyPreviewResult& WithStatus(LifecyclePolicyPreviewStatus&& value) { SetStatus(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The <code>nextToken</code> value to include in a future
|
||||
* <code>GetLifecyclePolicyPreview</code> request. When the results of a
|
||||
* <code>GetLifecyclePolicyPreview</code> request exceed <code>maxResults</code>,
|
||||
* this value can be used to retrieve the next page of results. This value is
|
||||
* <code>null</code> when there are no more results to return.</p>
|
||||
*/
|
||||
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
|
||||
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
|
||||
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
|
||||
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
|
||||
inline GetLifecyclePolicyPreviewResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
|
||||
inline GetLifecyclePolicyPreviewResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
|
||||
inline GetLifecyclePolicyPreviewResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The results of the lifecycle policy preview request.</p>
|
||||
*/
|
||||
inline const Aws::Vector<LifecyclePolicyPreviewResult>& GetPreviewResults() const{ return m_previewResults; }
|
||||
inline void SetPreviewResults(const Aws::Vector<LifecyclePolicyPreviewResult>& value) { m_previewResults = value; }
|
||||
inline void SetPreviewResults(Aws::Vector<LifecyclePolicyPreviewResult>&& value) { m_previewResults = std::move(value); }
|
||||
inline GetLifecyclePolicyPreviewResult& WithPreviewResults(const Aws::Vector<LifecyclePolicyPreviewResult>& value) { SetPreviewResults(value); return *this;}
|
||||
inline GetLifecyclePolicyPreviewResult& WithPreviewResults(Aws::Vector<LifecyclePolicyPreviewResult>&& value) { SetPreviewResults(std::move(value)); return *this;}
|
||||
inline GetLifecyclePolicyPreviewResult& AddPreviewResults(const LifecyclePolicyPreviewResult& value) { m_previewResults.push_back(value); return *this; }
|
||||
inline GetLifecyclePolicyPreviewResult& AddPreviewResults(LifecyclePolicyPreviewResult&& value) { m_previewResults.push_back(std::move(value)); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The list of images that is returned as a result of the action.</p>
|
||||
*/
|
||||
inline const LifecyclePolicyPreviewSummary& GetSummary() const{ return m_summary; }
|
||||
inline void SetSummary(const LifecyclePolicyPreviewSummary& value) { m_summary = value; }
|
||||
inline void SetSummary(LifecyclePolicyPreviewSummary&& value) { m_summary = std::move(value); }
|
||||
inline GetLifecyclePolicyPreviewResult& WithSummary(const LifecyclePolicyPreviewSummary& value) { SetSummary(value); return *this;}
|
||||
inline GetLifecyclePolicyPreviewResult& WithSummary(LifecyclePolicyPreviewSummary&& value) { SetSummary(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetRequestId() const{ return m_requestId; }
|
||||
inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
|
||||
inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
|
||||
inline void SetRequestId(const char* value) { m_requestId.assign(value); }
|
||||
inline GetLifecyclePolicyPreviewResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
|
||||
inline GetLifecyclePolicyPreviewResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
|
||||
inline GetLifecyclePolicyPreviewResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_registryId;
|
||||
|
||||
Aws::String m_repositoryName;
|
||||
|
||||
Aws::String m_lifecyclePolicyText;
|
||||
|
||||
LifecyclePolicyPreviewStatus m_status;
|
||||
|
||||
Aws::String m_nextToken;
|
||||
|
||||
Aws::Vector<LifecyclePolicyPreviewResult> m_previewResults;
|
||||
|
||||
LifecyclePolicyPreviewSummary m_summary;
|
||||
|
||||
Aws::String m_requestId;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,77 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/ecr/ECRRequest.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
*/
|
||||
class GetLifecyclePolicyRequest : public ECRRequest
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API GetLifecyclePolicyRequest();
|
||||
|
||||
// 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 "GetLifecyclePolicy"; }
|
||||
|
||||
AWS_ECR_API Aws::String SerializePayload() const override;
|
||||
|
||||
AWS_ECR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The Amazon Web Services account ID associated with the registry that contains
|
||||
* the repository. If you do not specify a registry, the default registry is
|
||||
* assumed.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRegistryId() const{ return m_registryId; }
|
||||
inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
|
||||
inline void SetRegistryId(const Aws::String& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
|
||||
inline void SetRegistryId(Aws::String&& value) { m_registryIdHasBeenSet = true; m_registryId = std::move(value); }
|
||||
inline void SetRegistryId(const char* value) { m_registryIdHasBeenSet = true; m_registryId.assign(value); }
|
||||
inline GetLifecyclePolicyRequest& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
|
||||
inline GetLifecyclePolicyRequest& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
|
||||
inline GetLifecyclePolicyRequest& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The name of the repository.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
|
||||
inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
|
||||
inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
|
||||
inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
|
||||
inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
|
||||
inline GetLifecyclePolicyRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
|
||||
inline GetLifecyclePolicyRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
|
||||
inline GetLifecyclePolicyRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_registryId;
|
||||
bool m_registryIdHasBeenSet = false;
|
||||
|
||||
Aws::String m_repositoryName;
|
||||
bool m_repositoryNameHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,111 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/core/utils/DateTime.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
template<typename RESULT_TYPE>
|
||||
class AmazonWebServiceResult;
|
||||
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class GetLifecyclePolicyResult
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API GetLifecyclePolicyResult();
|
||||
AWS_ECR_API GetLifecyclePolicyResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
AWS_ECR_API GetLifecyclePolicyResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The registry ID associated with the request.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRegistryId() const{ return m_registryId; }
|
||||
inline void SetRegistryId(const Aws::String& value) { m_registryId = value; }
|
||||
inline void SetRegistryId(Aws::String&& value) { m_registryId = std::move(value); }
|
||||
inline void SetRegistryId(const char* value) { m_registryId.assign(value); }
|
||||
inline GetLifecyclePolicyResult& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
|
||||
inline GetLifecyclePolicyResult& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
|
||||
inline GetLifecyclePolicyResult& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The repository name associated with the request.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
|
||||
inline void SetRepositoryName(const Aws::String& value) { m_repositoryName = value; }
|
||||
inline void SetRepositoryName(Aws::String&& value) { m_repositoryName = std::move(value); }
|
||||
inline void SetRepositoryName(const char* value) { m_repositoryName.assign(value); }
|
||||
inline GetLifecyclePolicyResult& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
|
||||
inline GetLifecyclePolicyResult& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
|
||||
inline GetLifecyclePolicyResult& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The JSON lifecycle policy text.</p>
|
||||
*/
|
||||
inline const Aws::String& GetLifecyclePolicyText() const{ return m_lifecyclePolicyText; }
|
||||
inline void SetLifecyclePolicyText(const Aws::String& value) { m_lifecyclePolicyText = value; }
|
||||
inline void SetLifecyclePolicyText(Aws::String&& value) { m_lifecyclePolicyText = std::move(value); }
|
||||
inline void SetLifecyclePolicyText(const char* value) { m_lifecyclePolicyText.assign(value); }
|
||||
inline GetLifecyclePolicyResult& WithLifecyclePolicyText(const Aws::String& value) { SetLifecyclePolicyText(value); return *this;}
|
||||
inline GetLifecyclePolicyResult& WithLifecyclePolicyText(Aws::String&& value) { SetLifecyclePolicyText(std::move(value)); return *this;}
|
||||
inline GetLifecyclePolicyResult& WithLifecyclePolicyText(const char* value) { SetLifecyclePolicyText(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The time stamp of the last time that the lifecycle policy was run.</p>
|
||||
*/
|
||||
inline const Aws::Utils::DateTime& GetLastEvaluatedAt() const{ return m_lastEvaluatedAt; }
|
||||
inline void SetLastEvaluatedAt(const Aws::Utils::DateTime& value) { m_lastEvaluatedAt = value; }
|
||||
inline void SetLastEvaluatedAt(Aws::Utils::DateTime&& value) { m_lastEvaluatedAt = std::move(value); }
|
||||
inline GetLifecyclePolicyResult& WithLastEvaluatedAt(const Aws::Utils::DateTime& value) { SetLastEvaluatedAt(value); return *this;}
|
||||
inline GetLifecyclePolicyResult& WithLastEvaluatedAt(Aws::Utils::DateTime&& value) { SetLastEvaluatedAt(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetRequestId() const{ return m_requestId; }
|
||||
inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
|
||||
inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
|
||||
inline void SetRequestId(const char* value) { m_requestId.assign(value); }
|
||||
inline GetLifecyclePolicyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
|
||||
inline GetLifecyclePolicyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
|
||||
inline GetLifecyclePolicyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_registryId;
|
||||
|
||||
Aws::String m_repositoryName;
|
||||
|
||||
Aws::String m_lifecyclePolicyText;
|
||||
|
||||
Aws::Utils::DateTime m_lastEvaluatedAt;
|
||||
|
||||
Aws::String m_requestId;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,38 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/ecr/ECRRequest.h>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
*/
|
||||
class GetRegistryPolicyRequest : public ECRRequest
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API GetRegistryPolicyRequest();
|
||||
|
||||
// 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 "GetRegistryPolicy"; }
|
||||
|
||||
AWS_ECR_API Aws::String SerializePayload() const override;
|
||||
|
||||
AWS_ECR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
|
||||
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,82 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
template<typename RESULT_TYPE>
|
||||
class AmazonWebServiceResult;
|
||||
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class GetRegistryPolicyResult
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API GetRegistryPolicyResult();
|
||||
AWS_ECR_API GetRegistryPolicyResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
AWS_ECR_API GetRegistryPolicyResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The registry ID associated with the request.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRegistryId() const{ return m_registryId; }
|
||||
inline void SetRegistryId(const Aws::String& value) { m_registryId = value; }
|
||||
inline void SetRegistryId(Aws::String&& value) { m_registryId = std::move(value); }
|
||||
inline void SetRegistryId(const char* value) { m_registryId.assign(value); }
|
||||
inline GetRegistryPolicyResult& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
|
||||
inline GetRegistryPolicyResult& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
|
||||
inline GetRegistryPolicyResult& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The JSON text of the permissions policy for a registry.</p>
|
||||
*/
|
||||
inline const Aws::String& GetPolicyText() const{ return m_policyText; }
|
||||
inline void SetPolicyText(const Aws::String& value) { m_policyText = value; }
|
||||
inline void SetPolicyText(Aws::String&& value) { m_policyText = std::move(value); }
|
||||
inline void SetPolicyText(const char* value) { m_policyText.assign(value); }
|
||||
inline GetRegistryPolicyResult& WithPolicyText(const Aws::String& value) { SetPolicyText(value); return *this;}
|
||||
inline GetRegistryPolicyResult& WithPolicyText(Aws::String&& value) { SetPolicyText(std::move(value)); return *this;}
|
||||
inline GetRegistryPolicyResult& WithPolicyText(const char* value) { SetPolicyText(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetRequestId() const{ return m_requestId; }
|
||||
inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
|
||||
inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
|
||||
inline void SetRequestId(const char* value) { m_requestId.assign(value); }
|
||||
inline GetRegistryPolicyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
|
||||
inline GetRegistryPolicyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
|
||||
inline GetRegistryPolicyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_registryId;
|
||||
|
||||
Aws::String m_policyText;
|
||||
|
||||
Aws::String m_requestId;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,38 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/ecr/ECRRequest.h>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
*/
|
||||
class GetRegistryScanningConfigurationRequest : public ECRRequest
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API GetRegistryScanningConfigurationRequest();
|
||||
|
||||
// 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 "GetRegistryScanningConfiguration"; }
|
||||
|
||||
AWS_ECR_API Aws::String SerializePayload() const override;
|
||||
|
||||
AWS_ECR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
|
||||
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,81 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/ecr/model/RegistryScanningConfiguration.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
template<typename RESULT_TYPE>
|
||||
class AmazonWebServiceResult;
|
||||
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class GetRegistryScanningConfigurationResult
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API GetRegistryScanningConfigurationResult();
|
||||
AWS_ECR_API GetRegistryScanningConfigurationResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
AWS_ECR_API GetRegistryScanningConfigurationResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The registry ID associated with the request.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRegistryId() const{ return m_registryId; }
|
||||
inline void SetRegistryId(const Aws::String& value) { m_registryId = value; }
|
||||
inline void SetRegistryId(Aws::String&& value) { m_registryId = std::move(value); }
|
||||
inline void SetRegistryId(const char* value) { m_registryId.assign(value); }
|
||||
inline GetRegistryScanningConfigurationResult& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
|
||||
inline GetRegistryScanningConfigurationResult& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
|
||||
inline GetRegistryScanningConfigurationResult& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The scanning configuration for the registry.</p>
|
||||
*/
|
||||
inline const RegistryScanningConfiguration& GetScanningConfiguration() const{ return m_scanningConfiguration; }
|
||||
inline void SetScanningConfiguration(const RegistryScanningConfiguration& value) { m_scanningConfiguration = value; }
|
||||
inline void SetScanningConfiguration(RegistryScanningConfiguration&& value) { m_scanningConfiguration = std::move(value); }
|
||||
inline GetRegistryScanningConfigurationResult& WithScanningConfiguration(const RegistryScanningConfiguration& value) { SetScanningConfiguration(value); return *this;}
|
||||
inline GetRegistryScanningConfigurationResult& WithScanningConfiguration(RegistryScanningConfiguration&& value) { SetScanningConfiguration(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetRequestId() const{ return m_requestId; }
|
||||
inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
|
||||
inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
|
||||
inline void SetRequestId(const char* value) { m_requestId.assign(value); }
|
||||
inline GetRegistryScanningConfigurationResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
|
||||
inline GetRegistryScanningConfigurationResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
|
||||
inline GetRegistryScanningConfigurationResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_registryId;
|
||||
|
||||
RegistryScanningConfiguration m_scanningConfiguration;
|
||||
|
||||
Aws::String m_requestId;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,77 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/ecr/ECRRequest.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
*/
|
||||
class GetRepositoryPolicyRequest : public ECRRequest
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API GetRepositoryPolicyRequest();
|
||||
|
||||
// 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 "GetRepositoryPolicy"; }
|
||||
|
||||
AWS_ECR_API Aws::String SerializePayload() const override;
|
||||
|
||||
AWS_ECR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The Amazon Web Services account ID associated with the registry that contains
|
||||
* the repository. If you do not specify a registry, the default registry is
|
||||
* assumed.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRegistryId() const{ return m_registryId; }
|
||||
inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
|
||||
inline void SetRegistryId(const Aws::String& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
|
||||
inline void SetRegistryId(Aws::String&& value) { m_registryIdHasBeenSet = true; m_registryId = std::move(value); }
|
||||
inline void SetRegistryId(const char* value) { m_registryIdHasBeenSet = true; m_registryId.assign(value); }
|
||||
inline GetRepositoryPolicyRequest& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
|
||||
inline GetRepositoryPolicyRequest& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
|
||||
inline GetRepositoryPolicyRequest& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The name of the repository with the policy to retrieve.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
|
||||
inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
|
||||
inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
|
||||
inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
|
||||
inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
|
||||
inline GetRepositoryPolicyRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
|
||||
inline GetRepositoryPolicyRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
|
||||
inline GetRepositoryPolicyRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_registryId;
|
||||
bool m_registryIdHasBeenSet = false;
|
||||
|
||||
Aws::String m_repositoryName;
|
||||
bool m_repositoryNameHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,97 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
template<typename RESULT_TYPE>
|
||||
class AmazonWebServiceResult;
|
||||
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class GetRepositoryPolicyResult
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API GetRepositoryPolicyResult();
|
||||
AWS_ECR_API GetRepositoryPolicyResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
AWS_ECR_API GetRepositoryPolicyResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The registry ID associated with the request.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRegistryId() const{ return m_registryId; }
|
||||
inline void SetRegistryId(const Aws::String& value) { m_registryId = value; }
|
||||
inline void SetRegistryId(Aws::String&& value) { m_registryId = std::move(value); }
|
||||
inline void SetRegistryId(const char* value) { m_registryId.assign(value); }
|
||||
inline GetRepositoryPolicyResult& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
|
||||
inline GetRepositoryPolicyResult& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
|
||||
inline GetRepositoryPolicyResult& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The repository name associated with the request.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
|
||||
inline void SetRepositoryName(const Aws::String& value) { m_repositoryName = value; }
|
||||
inline void SetRepositoryName(Aws::String&& value) { m_repositoryName = std::move(value); }
|
||||
inline void SetRepositoryName(const char* value) { m_repositoryName.assign(value); }
|
||||
inline GetRepositoryPolicyResult& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
|
||||
inline GetRepositoryPolicyResult& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
|
||||
inline GetRepositoryPolicyResult& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The JSON repository policy text associated with the repository.</p>
|
||||
*/
|
||||
inline const Aws::String& GetPolicyText() const{ return m_policyText; }
|
||||
inline void SetPolicyText(const Aws::String& value) { m_policyText = value; }
|
||||
inline void SetPolicyText(Aws::String&& value) { m_policyText = std::move(value); }
|
||||
inline void SetPolicyText(const char* value) { m_policyText.assign(value); }
|
||||
inline GetRepositoryPolicyResult& WithPolicyText(const Aws::String& value) { SetPolicyText(value); return *this;}
|
||||
inline GetRepositoryPolicyResult& WithPolicyText(Aws::String&& value) { SetPolicyText(std::move(value)); return *this;}
|
||||
inline GetRepositoryPolicyResult& WithPolicyText(const char* value) { SetPolicyText(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetRequestId() const{ return m_requestId; }
|
||||
inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
|
||||
inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
|
||||
inline void SetRequestId(const char* value) { m_requestId.assign(value); }
|
||||
inline GetRepositoryPolicyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
|
||||
inline GetRepositoryPolicyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
|
||||
inline GetRepositoryPolicyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_registryId;
|
||||
|
||||
Aws::String m_repositoryName;
|
||||
|
||||
Aws::String m_policyText;
|
||||
|
||||
Aws::String m_requestId;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,130 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/ecr/model/ImageIdentifier.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p>An object representing an Amazon ECR image.</p><p><h3>See Also:</h3> <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/Image">AWS API
|
||||
* Reference</a></p>
|
||||
*/
|
||||
class Image
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API Image();
|
||||
AWS_ECR_API Image(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_ECR_API Image& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The Amazon Web Services account ID associated with the registry containing
|
||||
* the image.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRegistryId() const{ return m_registryId; }
|
||||
inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
|
||||
inline void SetRegistryId(const Aws::String& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
|
||||
inline void SetRegistryId(Aws::String&& value) { m_registryIdHasBeenSet = true; m_registryId = std::move(value); }
|
||||
inline void SetRegistryId(const char* value) { m_registryIdHasBeenSet = true; m_registryId.assign(value); }
|
||||
inline Image& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
|
||||
inline Image& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
|
||||
inline Image& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The name of the repository associated with the image.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
|
||||
inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
|
||||
inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
|
||||
inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
|
||||
inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
|
||||
inline Image& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
|
||||
inline Image& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
|
||||
inline Image& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>An object containing the image tag and image digest associated with an
|
||||
* image.</p>
|
||||
*/
|
||||
inline const ImageIdentifier& GetImageId() const{ return m_imageId; }
|
||||
inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
|
||||
inline void SetImageId(const ImageIdentifier& value) { m_imageIdHasBeenSet = true; m_imageId = value; }
|
||||
inline void SetImageId(ImageIdentifier&& value) { m_imageIdHasBeenSet = true; m_imageId = std::move(value); }
|
||||
inline Image& WithImageId(const ImageIdentifier& value) { SetImageId(value); return *this;}
|
||||
inline Image& WithImageId(ImageIdentifier&& value) { SetImageId(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The image manifest associated with the image.</p>
|
||||
*/
|
||||
inline const Aws::String& GetImageManifest() const{ return m_imageManifest; }
|
||||
inline bool ImageManifestHasBeenSet() const { return m_imageManifestHasBeenSet; }
|
||||
inline void SetImageManifest(const Aws::String& value) { m_imageManifestHasBeenSet = true; m_imageManifest = value; }
|
||||
inline void SetImageManifest(Aws::String&& value) { m_imageManifestHasBeenSet = true; m_imageManifest = std::move(value); }
|
||||
inline void SetImageManifest(const char* value) { m_imageManifestHasBeenSet = true; m_imageManifest.assign(value); }
|
||||
inline Image& WithImageManifest(const Aws::String& value) { SetImageManifest(value); return *this;}
|
||||
inline Image& WithImageManifest(Aws::String&& value) { SetImageManifest(std::move(value)); return *this;}
|
||||
inline Image& WithImageManifest(const char* value) { SetImageManifest(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The manifest media type of the image.</p>
|
||||
*/
|
||||
inline const Aws::String& GetImageManifestMediaType() const{ return m_imageManifestMediaType; }
|
||||
inline bool ImageManifestMediaTypeHasBeenSet() const { return m_imageManifestMediaTypeHasBeenSet; }
|
||||
inline void SetImageManifestMediaType(const Aws::String& value) { m_imageManifestMediaTypeHasBeenSet = true; m_imageManifestMediaType = value; }
|
||||
inline void SetImageManifestMediaType(Aws::String&& value) { m_imageManifestMediaTypeHasBeenSet = true; m_imageManifestMediaType = std::move(value); }
|
||||
inline void SetImageManifestMediaType(const char* value) { m_imageManifestMediaTypeHasBeenSet = true; m_imageManifestMediaType.assign(value); }
|
||||
inline Image& WithImageManifestMediaType(const Aws::String& value) { SetImageManifestMediaType(value); return *this;}
|
||||
inline Image& WithImageManifestMediaType(Aws::String&& value) { SetImageManifestMediaType(std::move(value)); return *this;}
|
||||
inline Image& WithImageManifestMediaType(const char* value) { SetImageManifestMediaType(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_registryId;
|
||||
bool m_registryIdHasBeenSet = false;
|
||||
|
||||
Aws::String m_repositoryName;
|
||||
bool m_repositoryNameHasBeenSet = false;
|
||||
|
||||
ImageIdentifier m_imageId;
|
||||
bool m_imageIdHasBeenSet = false;
|
||||
|
||||
Aws::String m_imageManifest;
|
||||
bool m_imageManifestHasBeenSet = false;
|
||||
|
||||
Aws::String m_imageManifestMediaType;
|
||||
bool m_imageManifestMediaTypeHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,30 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
enum class ImageActionType
|
||||
{
|
||||
NOT_SET,
|
||||
EXPIRE
|
||||
};
|
||||
|
||||
namespace ImageActionTypeMapper
|
||||
{
|
||||
AWS_ECR_API ImageActionType GetImageActionTypeForName(const Aws::String& name);
|
||||
|
||||
AWS_ECR_API Aws::String GetNameForImageActionType(ImageActionType value);
|
||||
} // namespace ImageActionTypeMapper
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,240 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/core/utils/memory/stl/AWSVector.h>
|
||||
#include <aws/core/utils/DateTime.h>
|
||||
#include <aws/ecr/model/ImageScanStatus.h>
|
||||
#include <aws/ecr/model/ImageScanFindingsSummary.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p>An object that describes an image returned by a <a>DescribeImages</a>
|
||||
* operation.</p><p><h3>See Also:</h3> <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/ImageDetail">AWS API
|
||||
* Reference</a></p>
|
||||
*/
|
||||
class ImageDetail
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API ImageDetail();
|
||||
AWS_ECR_API ImageDetail(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_ECR_API ImageDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The Amazon Web Services account ID associated with the registry to which this
|
||||
* image belongs.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRegistryId() const{ return m_registryId; }
|
||||
inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
|
||||
inline void SetRegistryId(const Aws::String& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
|
||||
inline void SetRegistryId(Aws::String&& value) { m_registryIdHasBeenSet = true; m_registryId = std::move(value); }
|
||||
inline void SetRegistryId(const char* value) { m_registryIdHasBeenSet = true; m_registryId.assign(value); }
|
||||
inline ImageDetail& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
|
||||
inline ImageDetail& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
|
||||
inline ImageDetail& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The name of the repository to which this image belongs.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
|
||||
inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
|
||||
inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
|
||||
inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
|
||||
inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
|
||||
inline ImageDetail& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
|
||||
inline ImageDetail& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
|
||||
inline ImageDetail& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The <code>sha256</code> digest of the image manifest.</p>
|
||||
*/
|
||||
inline const Aws::String& GetImageDigest() const{ return m_imageDigest; }
|
||||
inline bool ImageDigestHasBeenSet() const { return m_imageDigestHasBeenSet; }
|
||||
inline void SetImageDigest(const Aws::String& value) { m_imageDigestHasBeenSet = true; m_imageDigest = value; }
|
||||
inline void SetImageDigest(Aws::String&& value) { m_imageDigestHasBeenSet = true; m_imageDigest = std::move(value); }
|
||||
inline void SetImageDigest(const char* value) { m_imageDigestHasBeenSet = true; m_imageDigest.assign(value); }
|
||||
inline ImageDetail& WithImageDigest(const Aws::String& value) { SetImageDigest(value); return *this;}
|
||||
inline ImageDetail& WithImageDigest(Aws::String&& value) { SetImageDigest(std::move(value)); return *this;}
|
||||
inline ImageDetail& WithImageDigest(const char* value) { SetImageDigest(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The list of tags associated with this image.</p>
|
||||
*/
|
||||
inline const Aws::Vector<Aws::String>& GetImageTags() const{ return m_imageTags; }
|
||||
inline bool ImageTagsHasBeenSet() const { return m_imageTagsHasBeenSet; }
|
||||
inline void SetImageTags(const Aws::Vector<Aws::String>& value) { m_imageTagsHasBeenSet = true; m_imageTags = value; }
|
||||
inline void SetImageTags(Aws::Vector<Aws::String>&& value) { m_imageTagsHasBeenSet = true; m_imageTags = std::move(value); }
|
||||
inline ImageDetail& WithImageTags(const Aws::Vector<Aws::String>& value) { SetImageTags(value); return *this;}
|
||||
inline ImageDetail& WithImageTags(Aws::Vector<Aws::String>&& value) { SetImageTags(std::move(value)); return *this;}
|
||||
inline ImageDetail& AddImageTags(const Aws::String& value) { m_imageTagsHasBeenSet = true; m_imageTags.push_back(value); return *this; }
|
||||
inline ImageDetail& AddImageTags(Aws::String&& value) { m_imageTagsHasBeenSet = true; m_imageTags.push_back(std::move(value)); return *this; }
|
||||
inline ImageDetail& AddImageTags(const char* value) { m_imageTagsHasBeenSet = true; m_imageTags.push_back(value); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The size, in bytes, of the image in the repository.</p> <p>If the image is a
|
||||
* manifest list, this will be the max size of all manifests in the list.</p>
|
||||
* <p>Beginning with Docker version 1.9, the Docker client compresses image
|
||||
* layers before pushing them to a V2 Docker registry. The output of the
|
||||
* <code>docker images</code> command shows the uncompressed image size, so it may
|
||||
* return a larger image size than the image sizes returned by
|
||||
* <a>DescribeImages</a>.</p>
|
||||
*/
|
||||
inline long long GetImageSizeInBytes() const{ return m_imageSizeInBytes; }
|
||||
inline bool ImageSizeInBytesHasBeenSet() const { return m_imageSizeInBytesHasBeenSet; }
|
||||
inline void SetImageSizeInBytes(long long value) { m_imageSizeInBytesHasBeenSet = true; m_imageSizeInBytes = value; }
|
||||
inline ImageDetail& WithImageSizeInBytes(long long value) { SetImageSizeInBytes(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The date and time, expressed in standard JavaScript date format, at which the
|
||||
* current image was pushed to the repository. </p>
|
||||
*/
|
||||
inline const Aws::Utils::DateTime& GetImagePushedAt() const{ return m_imagePushedAt; }
|
||||
inline bool ImagePushedAtHasBeenSet() const { return m_imagePushedAtHasBeenSet; }
|
||||
inline void SetImagePushedAt(const Aws::Utils::DateTime& value) { m_imagePushedAtHasBeenSet = true; m_imagePushedAt = value; }
|
||||
inline void SetImagePushedAt(Aws::Utils::DateTime&& value) { m_imagePushedAtHasBeenSet = true; m_imagePushedAt = std::move(value); }
|
||||
inline ImageDetail& WithImagePushedAt(const Aws::Utils::DateTime& value) { SetImagePushedAt(value); return *this;}
|
||||
inline ImageDetail& WithImagePushedAt(Aws::Utils::DateTime&& value) { SetImagePushedAt(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The current state of the scan.</p>
|
||||
*/
|
||||
inline const ImageScanStatus& GetImageScanStatus() const{ return m_imageScanStatus; }
|
||||
inline bool ImageScanStatusHasBeenSet() const { return m_imageScanStatusHasBeenSet; }
|
||||
inline void SetImageScanStatus(const ImageScanStatus& value) { m_imageScanStatusHasBeenSet = true; m_imageScanStatus = value; }
|
||||
inline void SetImageScanStatus(ImageScanStatus&& value) { m_imageScanStatusHasBeenSet = true; m_imageScanStatus = std::move(value); }
|
||||
inline ImageDetail& WithImageScanStatus(const ImageScanStatus& value) { SetImageScanStatus(value); return *this;}
|
||||
inline ImageDetail& WithImageScanStatus(ImageScanStatus&& value) { SetImageScanStatus(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>A summary of the last completed image scan.</p>
|
||||
*/
|
||||
inline const ImageScanFindingsSummary& GetImageScanFindingsSummary() const{ return m_imageScanFindingsSummary; }
|
||||
inline bool ImageScanFindingsSummaryHasBeenSet() const { return m_imageScanFindingsSummaryHasBeenSet; }
|
||||
inline void SetImageScanFindingsSummary(const ImageScanFindingsSummary& value) { m_imageScanFindingsSummaryHasBeenSet = true; m_imageScanFindingsSummary = value; }
|
||||
inline void SetImageScanFindingsSummary(ImageScanFindingsSummary&& value) { m_imageScanFindingsSummaryHasBeenSet = true; m_imageScanFindingsSummary = std::move(value); }
|
||||
inline ImageDetail& WithImageScanFindingsSummary(const ImageScanFindingsSummary& value) { SetImageScanFindingsSummary(value); return *this;}
|
||||
inline ImageDetail& WithImageScanFindingsSummary(ImageScanFindingsSummary&& value) { SetImageScanFindingsSummary(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The media type of the image manifest.</p>
|
||||
*/
|
||||
inline const Aws::String& GetImageManifestMediaType() const{ return m_imageManifestMediaType; }
|
||||
inline bool ImageManifestMediaTypeHasBeenSet() const { return m_imageManifestMediaTypeHasBeenSet; }
|
||||
inline void SetImageManifestMediaType(const Aws::String& value) { m_imageManifestMediaTypeHasBeenSet = true; m_imageManifestMediaType = value; }
|
||||
inline void SetImageManifestMediaType(Aws::String&& value) { m_imageManifestMediaTypeHasBeenSet = true; m_imageManifestMediaType = std::move(value); }
|
||||
inline void SetImageManifestMediaType(const char* value) { m_imageManifestMediaTypeHasBeenSet = true; m_imageManifestMediaType.assign(value); }
|
||||
inline ImageDetail& WithImageManifestMediaType(const Aws::String& value) { SetImageManifestMediaType(value); return *this;}
|
||||
inline ImageDetail& WithImageManifestMediaType(Aws::String&& value) { SetImageManifestMediaType(std::move(value)); return *this;}
|
||||
inline ImageDetail& WithImageManifestMediaType(const char* value) { SetImageManifestMediaType(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The artifact media type of the image.</p>
|
||||
*/
|
||||
inline const Aws::String& GetArtifactMediaType() const{ return m_artifactMediaType; }
|
||||
inline bool ArtifactMediaTypeHasBeenSet() const { return m_artifactMediaTypeHasBeenSet; }
|
||||
inline void SetArtifactMediaType(const Aws::String& value) { m_artifactMediaTypeHasBeenSet = true; m_artifactMediaType = value; }
|
||||
inline void SetArtifactMediaType(Aws::String&& value) { m_artifactMediaTypeHasBeenSet = true; m_artifactMediaType = std::move(value); }
|
||||
inline void SetArtifactMediaType(const char* value) { m_artifactMediaTypeHasBeenSet = true; m_artifactMediaType.assign(value); }
|
||||
inline ImageDetail& WithArtifactMediaType(const Aws::String& value) { SetArtifactMediaType(value); return *this;}
|
||||
inline ImageDetail& WithArtifactMediaType(Aws::String&& value) { SetArtifactMediaType(std::move(value)); return *this;}
|
||||
inline ImageDetail& WithArtifactMediaType(const char* value) { SetArtifactMediaType(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The date and time, expressed in standard JavaScript date format, when Amazon
|
||||
* ECR recorded the last image pull.</p> <p>Amazon ECR refreshes the last
|
||||
* image pull timestamp at least once every 24 hours. For example, if you pull an
|
||||
* image once a day then the <code>lastRecordedPullTime</code> timestamp will
|
||||
* indicate the exact time that the image was last pulled. However, if you pull an
|
||||
* image once an hour, because Amazon ECR refreshes the
|
||||
* <code>lastRecordedPullTime</code> timestamp at least once every 24 hours, the
|
||||
* result may not be the exact time that the image was last pulled.</p>
|
||||
*/
|
||||
inline const Aws::Utils::DateTime& GetLastRecordedPullTime() const{ return m_lastRecordedPullTime; }
|
||||
inline bool LastRecordedPullTimeHasBeenSet() const { return m_lastRecordedPullTimeHasBeenSet; }
|
||||
inline void SetLastRecordedPullTime(const Aws::Utils::DateTime& value) { m_lastRecordedPullTimeHasBeenSet = true; m_lastRecordedPullTime = value; }
|
||||
inline void SetLastRecordedPullTime(Aws::Utils::DateTime&& value) { m_lastRecordedPullTimeHasBeenSet = true; m_lastRecordedPullTime = std::move(value); }
|
||||
inline ImageDetail& WithLastRecordedPullTime(const Aws::Utils::DateTime& value) { SetLastRecordedPullTime(value); return *this;}
|
||||
inline ImageDetail& WithLastRecordedPullTime(Aws::Utils::DateTime&& value) { SetLastRecordedPullTime(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_imageDigest;
|
||||
bool m_imageDigestHasBeenSet = false;
|
||||
|
||||
Aws::Vector<Aws::String> m_imageTags;
|
||||
bool m_imageTagsHasBeenSet = false;
|
||||
|
||||
long long m_imageSizeInBytes;
|
||||
bool m_imageSizeInBytesHasBeenSet = false;
|
||||
|
||||
Aws::Utils::DateTime m_imagePushedAt;
|
||||
bool m_imagePushedAtHasBeenSet = false;
|
||||
|
||||
ImageScanStatus m_imageScanStatus;
|
||||
bool m_imageScanStatusHasBeenSet = false;
|
||||
|
||||
ImageScanFindingsSummary m_imageScanFindingsSummary;
|
||||
bool m_imageScanFindingsSummaryHasBeenSet = false;
|
||||
|
||||
Aws::String m_imageManifestMediaType;
|
||||
bool m_imageManifestMediaTypeHasBeenSet = false;
|
||||
|
||||
Aws::String m_artifactMediaType;
|
||||
bool m_artifactMediaTypeHasBeenSet = false;
|
||||
|
||||
Aws::Utils::DateTime m_lastRecordedPullTime;
|
||||
bool m_lastRecordedPullTimeHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,93 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/ecr/model/ImageIdentifier.h>
|
||||
#include <aws/ecr/model/ImageFailureCode.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p>An object representing an Amazon ECR image failure.</p><p><h3>See Also:</h3>
|
||||
* <a href="http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/ImageFailure">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class ImageFailure
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API ImageFailure();
|
||||
AWS_ECR_API ImageFailure(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_ECR_API ImageFailure& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The image ID associated with the failure.</p>
|
||||
*/
|
||||
inline const ImageIdentifier& GetImageId() const{ return m_imageId; }
|
||||
inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
|
||||
inline void SetImageId(const ImageIdentifier& value) { m_imageIdHasBeenSet = true; m_imageId = value; }
|
||||
inline void SetImageId(ImageIdentifier&& value) { m_imageIdHasBeenSet = true; m_imageId = std::move(value); }
|
||||
inline ImageFailure& WithImageId(const ImageIdentifier& value) { SetImageId(value); return *this;}
|
||||
inline ImageFailure& WithImageId(ImageIdentifier&& value) { SetImageId(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The code associated with the failure.</p>
|
||||
*/
|
||||
inline const ImageFailureCode& GetFailureCode() const{ return m_failureCode; }
|
||||
inline bool FailureCodeHasBeenSet() const { return m_failureCodeHasBeenSet; }
|
||||
inline void SetFailureCode(const ImageFailureCode& value) { m_failureCodeHasBeenSet = true; m_failureCode = value; }
|
||||
inline void SetFailureCode(ImageFailureCode&& value) { m_failureCodeHasBeenSet = true; m_failureCode = std::move(value); }
|
||||
inline ImageFailure& WithFailureCode(const ImageFailureCode& value) { SetFailureCode(value); return *this;}
|
||||
inline ImageFailure& WithFailureCode(ImageFailureCode&& value) { SetFailureCode(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The reason for the failure.</p>
|
||||
*/
|
||||
inline const Aws::String& GetFailureReason() const{ return m_failureReason; }
|
||||
inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
|
||||
inline void SetFailureReason(const Aws::String& value) { m_failureReasonHasBeenSet = true; m_failureReason = value; }
|
||||
inline void SetFailureReason(Aws::String&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::move(value); }
|
||||
inline void SetFailureReason(const char* value) { m_failureReasonHasBeenSet = true; m_failureReason.assign(value); }
|
||||
inline ImageFailure& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;}
|
||||
inline ImageFailure& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;}
|
||||
inline ImageFailure& WithFailureReason(const char* value) { SetFailureReason(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
ImageIdentifier m_imageId;
|
||||
bool m_imageIdHasBeenSet = false;
|
||||
|
||||
ImageFailureCode m_failureCode;
|
||||
bool m_failureCodeHasBeenSet = false;
|
||||
|
||||
Aws::String m_failureReason;
|
||||
bool m_failureReasonHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,39 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
enum class ImageFailureCode
|
||||
{
|
||||
NOT_SET,
|
||||
InvalidImageDigest,
|
||||
InvalidImageTag,
|
||||
ImageTagDoesNotMatchDigest,
|
||||
ImageNotFound,
|
||||
MissingDigestAndTag,
|
||||
ImageReferencedByManifestList,
|
||||
KmsError,
|
||||
UpstreamAccessDenied,
|
||||
UpstreamTooManyRequests,
|
||||
UpstreamUnavailable
|
||||
};
|
||||
|
||||
namespace ImageFailureCodeMapper
|
||||
{
|
||||
AWS_ECR_API ImageFailureCode GetImageFailureCodeForName(const Aws::String& name);
|
||||
|
||||
AWS_ECR_API Aws::String GetNameForImageFailureCode(ImageFailureCode value);
|
||||
} // namespace ImageFailureCodeMapper
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,79 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p>An object with identifying information for an image in an Amazon ECR
|
||||
* repository.</p><p><h3>See Also:</h3> <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/ImageIdentifier">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class ImageIdentifier
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API ImageIdentifier();
|
||||
AWS_ECR_API ImageIdentifier(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_ECR_API ImageIdentifier& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The <code>sha256</code> digest of the image manifest.</p>
|
||||
*/
|
||||
inline const Aws::String& GetImageDigest() const{ return m_imageDigest; }
|
||||
inline bool ImageDigestHasBeenSet() const { return m_imageDigestHasBeenSet; }
|
||||
inline void SetImageDigest(const Aws::String& value) { m_imageDigestHasBeenSet = true; m_imageDigest = value; }
|
||||
inline void SetImageDigest(Aws::String&& value) { m_imageDigestHasBeenSet = true; m_imageDigest = std::move(value); }
|
||||
inline void SetImageDigest(const char* value) { m_imageDigestHasBeenSet = true; m_imageDigest.assign(value); }
|
||||
inline ImageIdentifier& WithImageDigest(const Aws::String& value) { SetImageDigest(value); return *this;}
|
||||
inline ImageIdentifier& WithImageDigest(Aws::String&& value) { SetImageDigest(std::move(value)); return *this;}
|
||||
inline ImageIdentifier& WithImageDigest(const char* value) { SetImageDigest(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The tag used for the image.</p>
|
||||
*/
|
||||
inline const Aws::String& GetImageTag() const{ return m_imageTag; }
|
||||
inline bool ImageTagHasBeenSet() const { return m_imageTagHasBeenSet; }
|
||||
inline void SetImageTag(const Aws::String& value) { m_imageTagHasBeenSet = true; m_imageTag = value; }
|
||||
inline void SetImageTag(Aws::String&& value) { m_imageTagHasBeenSet = true; m_imageTag = std::move(value); }
|
||||
inline void SetImageTag(const char* value) { m_imageTagHasBeenSet = true; m_imageTag.assign(value); }
|
||||
inline ImageIdentifier& WithImageTag(const Aws::String& value) { SetImageTag(value); return *this;}
|
||||
inline ImageIdentifier& WithImageTag(Aws::String&& value) { SetImageTag(std::move(value)); return *this;}
|
||||
inline ImageIdentifier& WithImageTag(const char* value) { SetImageTag(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_imageDigest;
|
||||
bool m_imageDigestHasBeenSet = false;
|
||||
|
||||
Aws::String m_imageTag;
|
||||
bool m_imageTagHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,113 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/ecr/model/ReplicationStatus.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p>The status of the replication process for an image.</p><p><h3>See Also:</h3>
|
||||
* <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/ImageReplicationStatus">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class ImageReplicationStatus
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API ImageReplicationStatus();
|
||||
AWS_ECR_API ImageReplicationStatus(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_ECR_API ImageReplicationStatus& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The destination Region for the image replication.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRegion() const{ return m_region; }
|
||||
inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
|
||||
inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; }
|
||||
inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); }
|
||||
inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); }
|
||||
inline ImageReplicationStatus& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
|
||||
inline ImageReplicationStatus& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;}
|
||||
inline ImageReplicationStatus& WithRegion(const char* value) { SetRegion(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The Amazon Web Services account ID associated with the registry to which the
|
||||
* image belongs.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRegistryId() const{ return m_registryId; }
|
||||
inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
|
||||
inline void SetRegistryId(const Aws::String& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
|
||||
inline void SetRegistryId(Aws::String&& value) { m_registryIdHasBeenSet = true; m_registryId = std::move(value); }
|
||||
inline void SetRegistryId(const char* value) { m_registryIdHasBeenSet = true; m_registryId.assign(value); }
|
||||
inline ImageReplicationStatus& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
|
||||
inline ImageReplicationStatus& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
|
||||
inline ImageReplicationStatus& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The image replication status.</p>
|
||||
*/
|
||||
inline const ReplicationStatus& GetStatus() const{ return m_status; }
|
||||
inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
|
||||
inline void SetStatus(const ReplicationStatus& value) { m_statusHasBeenSet = true; m_status = value; }
|
||||
inline void SetStatus(ReplicationStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
|
||||
inline ImageReplicationStatus& WithStatus(const ReplicationStatus& value) { SetStatus(value); return *this;}
|
||||
inline ImageReplicationStatus& WithStatus(ReplicationStatus&& value) { SetStatus(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The failure code for a replication that has failed.</p>
|
||||
*/
|
||||
inline const Aws::String& GetFailureCode() const{ return m_failureCode; }
|
||||
inline bool FailureCodeHasBeenSet() const { return m_failureCodeHasBeenSet; }
|
||||
inline void SetFailureCode(const Aws::String& value) { m_failureCodeHasBeenSet = true; m_failureCode = value; }
|
||||
inline void SetFailureCode(Aws::String&& value) { m_failureCodeHasBeenSet = true; m_failureCode = std::move(value); }
|
||||
inline void SetFailureCode(const char* value) { m_failureCodeHasBeenSet = true; m_failureCode.assign(value); }
|
||||
inline ImageReplicationStatus& WithFailureCode(const Aws::String& value) { SetFailureCode(value); return *this;}
|
||||
inline ImageReplicationStatus& WithFailureCode(Aws::String&& value) { SetFailureCode(std::move(value)); return *this;}
|
||||
inline ImageReplicationStatus& WithFailureCode(const char* value) { SetFailureCode(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_region;
|
||||
bool m_regionHasBeenSet = false;
|
||||
|
||||
Aws::String m_registryId;
|
||||
bool m_registryIdHasBeenSet = false;
|
||||
|
||||
ReplicationStatus m_status;
|
||||
bool m_statusHasBeenSet = false;
|
||||
|
||||
Aws::String m_failureCode;
|
||||
bool m_failureCodeHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,132 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/ecr/model/FindingSeverity.h>
|
||||
#include <aws/core/utils/memory/stl/AWSVector.h>
|
||||
#include <aws/ecr/model/Attribute.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p>Contains information about an image scan finding.</p><p><h3>See Also:</h3>
|
||||
* <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/ImageScanFinding">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class ImageScanFinding
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API ImageScanFinding();
|
||||
AWS_ECR_API ImageScanFinding(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_ECR_API ImageScanFinding& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The name associated with the finding, usually a CVE number.</p>
|
||||
*/
|
||||
inline const Aws::String& GetName() const{ return m_name; }
|
||||
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
|
||||
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
|
||||
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
|
||||
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
|
||||
inline ImageScanFinding& WithName(const Aws::String& value) { SetName(value); return *this;}
|
||||
inline ImageScanFinding& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
|
||||
inline ImageScanFinding& WithName(const char* value) { SetName(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The description of the finding.</p>
|
||||
*/
|
||||
inline const Aws::String& GetDescription() const{ return m_description; }
|
||||
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
|
||||
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
|
||||
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
|
||||
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
|
||||
inline ImageScanFinding& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
|
||||
inline ImageScanFinding& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
|
||||
inline ImageScanFinding& WithDescription(const char* value) { SetDescription(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>A link containing additional details about the security vulnerability.</p>
|
||||
*/
|
||||
inline const Aws::String& GetUri() const{ return m_uri; }
|
||||
inline bool UriHasBeenSet() const { return m_uriHasBeenSet; }
|
||||
inline void SetUri(const Aws::String& value) { m_uriHasBeenSet = true; m_uri = value; }
|
||||
inline void SetUri(Aws::String&& value) { m_uriHasBeenSet = true; m_uri = std::move(value); }
|
||||
inline void SetUri(const char* value) { m_uriHasBeenSet = true; m_uri.assign(value); }
|
||||
inline ImageScanFinding& WithUri(const Aws::String& value) { SetUri(value); return *this;}
|
||||
inline ImageScanFinding& WithUri(Aws::String&& value) { SetUri(std::move(value)); return *this;}
|
||||
inline ImageScanFinding& WithUri(const char* value) { SetUri(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The finding severity.</p>
|
||||
*/
|
||||
inline const FindingSeverity& GetSeverity() const{ return m_severity; }
|
||||
inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
|
||||
inline void SetSeverity(const FindingSeverity& value) { m_severityHasBeenSet = true; m_severity = value; }
|
||||
inline void SetSeverity(FindingSeverity&& value) { m_severityHasBeenSet = true; m_severity = std::move(value); }
|
||||
inline ImageScanFinding& WithSeverity(const FindingSeverity& value) { SetSeverity(value); return *this;}
|
||||
inline ImageScanFinding& WithSeverity(FindingSeverity&& value) { SetSeverity(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>A collection of attributes of the host from which the finding is
|
||||
* generated.</p>
|
||||
*/
|
||||
inline const Aws::Vector<Attribute>& GetAttributes() const{ return m_attributes; }
|
||||
inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
|
||||
inline void SetAttributes(const Aws::Vector<Attribute>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
|
||||
inline void SetAttributes(Aws::Vector<Attribute>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
|
||||
inline ImageScanFinding& WithAttributes(const Aws::Vector<Attribute>& value) { SetAttributes(value); return *this;}
|
||||
inline ImageScanFinding& WithAttributes(Aws::Vector<Attribute>&& value) { SetAttributes(std::move(value)); return *this;}
|
||||
inline ImageScanFinding& AddAttributes(const Attribute& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
|
||||
inline ImageScanFinding& AddAttributes(Attribute&& value) { m_attributesHasBeenSet = true; m_attributes.push_back(std::move(value)); return *this; }
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_name;
|
||||
bool m_nameHasBeenSet = false;
|
||||
|
||||
Aws::String m_description;
|
||||
bool m_descriptionHasBeenSet = false;
|
||||
|
||||
Aws::String m_uri;
|
||||
bool m_uriHasBeenSet = false;
|
||||
|
||||
FindingSeverity m_severity;
|
||||
bool m_severityHasBeenSet = false;
|
||||
|
||||
Aws::Vector<Attribute> m_attributes;
|
||||
bool m_attributesHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,130 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/core/utils/DateTime.h>
|
||||
#include <aws/core/utils/memory/stl/AWSMap.h>
|
||||
#include <aws/core/utils/memory/stl/AWSVector.h>
|
||||
#include <aws/ecr/model/FindingSeverity.h>
|
||||
#include <aws/ecr/model/ImageScanFinding.h>
|
||||
#include <aws/ecr/model/EnhancedImageScanFinding.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p>The details of an image scan.</p><p><h3>See Also:</h3> <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/ImageScanFindings">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class ImageScanFindings
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API ImageScanFindings();
|
||||
AWS_ECR_API ImageScanFindings(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_ECR_API ImageScanFindings& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The time of the last completed image scan.</p>
|
||||
*/
|
||||
inline const Aws::Utils::DateTime& GetImageScanCompletedAt() const{ return m_imageScanCompletedAt; }
|
||||
inline bool ImageScanCompletedAtHasBeenSet() const { return m_imageScanCompletedAtHasBeenSet; }
|
||||
inline void SetImageScanCompletedAt(const Aws::Utils::DateTime& value) { m_imageScanCompletedAtHasBeenSet = true; m_imageScanCompletedAt = value; }
|
||||
inline void SetImageScanCompletedAt(Aws::Utils::DateTime&& value) { m_imageScanCompletedAtHasBeenSet = true; m_imageScanCompletedAt = std::move(value); }
|
||||
inline ImageScanFindings& WithImageScanCompletedAt(const Aws::Utils::DateTime& value) { SetImageScanCompletedAt(value); return *this;}
|
||||
inline ImageScanFindings& WithImageScanCompletedAt(Aws::Utils::DateTime&& value) { SetImageScanCompletedAt(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The time when the vulnerability data was last scanned.</p>
|
||||
*/
|
||||
inline const Aws::Utils::DateTime& GetVulnerabilitySourceUpdatedAt() const{ return m_vulnerabilitySourceUpdatedAt; }
|
||||
inline bool VulnerabilitySourceUpdatedAtHasBeenSet() const { return m_vulnerabilitySourceUpdatedAtHasBeenSet; }
|
||||
inline void SetVulnerabilitySourceUpdatedAt(const Aws::Utils::DateTime& value) { m_vulnerabilitySourceUpdatedAtHasBeenSet = true; m_vulnerabilitySourceUpdatedAt = value; }
|
||||
inline void SetVulnerabilitySourceUpdatedAt(Aws::Utils::DateTime&& value) { m_vulnerabilitySourceUpdatedAtHasBeenSet = true; m_vulnerabilitySourceUpdatedAt = std::move(value); }
|
||||
inline ImageScanFindings& WithVulnerabilitySourceUpdatedAt(const Aws::Utils::DateTime& value) { SetVulnerabilitySourceUpdatedAt(value); return *this;}
|
||||
inline ImageScanFindings& WithVulnerabilitySourceUpdatedAt(Aws::Utils::DateTime&& value) { SetVulnerabilitySourceUpdatedAt(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The image vulnerability counts, sorted by severity.</p>
|
||||
*/
|
||||
inline const Aws::Map<FindingSeverity, int>& GetFindingSeverityCounts() const{ return m_findingSeverityCounts; }
|
||||
inline bool FindingSeverityCountsHasBeenSet() const { return m_findingSeverityCountsHasBeenSet; }
|
||||
inline void SetFindingSeverityCounts(const Aws::Map<FindingSeverity, int>& value) { m_findingSeverityCountsHasBeenSet = true; m_findingSeverityCounts = value; }
|
||||
inline void SetFindingSeverityCounts(Aws::Map<FindingSeverity, int>&& value) { m_findingSeverityCountsHasBeenSet = true; m_findingSeverityCounts = std::move(value); }
|
||||
inline ImageScanFindings& WithFindingSeverityCounts(const Aws::Map<FindingSeverity, int>& value) { SetFindingSeverityCounts(value); return *this;}
|
||||
inline ImageScanFindings& WithFindingSeverityCounts(Aws::Map<FindingSeverity, int>&& value) { SetFindingSeverityCounts(std::move(value)); return *this;}
|
||||
inline ImageScanFindings& AddFindingSeverityCounts(const FindingSeverity& key, int value) { m_findingSeverityCountsHasBeenSet = true; m_findingSeverityCounts.emplace(key, value); return *this; }
|
||||
inline ImageScanFindings& AddFindingSeverityCounts(FindingSeverity&& key, int value) { m_findingSeverityCountsHasBeenSet = true; m_findingSeverityCounts.emplace(std::move(key), value); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The findings from the image scan.</p>
|
||||
*/
|
||||
inline const Aws::Vector<ImageScanFinding>& GetFindings() const{ return m_findings; }
|
||||
inline bool FindingsHasBeenSet() const { return m_findingsHasBeenSet; }
|
||||
inline void SetFindings(const Aws::Vector<ImageScanFinding>& value) { m_findingsHasBeenSet = true; m_findings = value; }
|
||||
inline void SetFindings(Aws::Vector<ImageScanFinding>&& value) { m_findingsHasBeenSet = true; m_findings = std::move(value); }
|
||||
inline ImageScanFindings& WithFindings(const Aws::Vector<ImageScanFinding>& value) { SetFindings(value); return *this;}
|
||||
inline ImageScanFindings& WithFindings(Aws::Vector<ImageScanFinding>&& value) { SetFindings(std::move(value)); return *this;}
|
||||
inline ImageScanFindings& AddFindings(const ImageScanFinding& value) { m_findingsHasBeenSet = true; m_findings.push_back(value); return *this; }
|
||||
inline ImageScanFindings& AddFindings(ImageScanFinding&& value) { m_findingsHasBeenSet = true; m_findings.push_back(std::move(value)); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>Details about the enhanced scan findings from Amazon Inspector.</p>
|
||||
*/
|
||||
inline const Aws::Vector<EnhancedImageScanFinding>& GetEnhancedFindings() const{ return m_enhancedFindings; }
|
||||
inline bool EnhancedFindingsHasBeenSet() const { return m_enhancedFindingsHasBeenSet; }
|
||||
inline void SetEnhancedFindings(const Aws::Vector<EnhancedImageScanFinding>& value) { m_enhancedFindingsHasBeenSet = true; m_enhancedFindings = value; }
|
||||
inline void SetEnhancedFindings(Aws::Vector<EnhancedImageScanFinding>&& value) { m_enhancedFindingsHasBeenSet = true; m_enhancedFindings = std::move(value); }
|
||||
inline ImageScanFindings& WithEnhancedFindings(const Aws::Vector<EnhancedImageScanFinding>& value) { SetEnhancedFindings(value); return *this;}
|
||||
inline ImageScanFindings& WithEnhancedFindings(Aws::Vector<EnhancedImageScanFinding>&& value) { SetEnhancedFindings(std::move(value)); return *this;}
|
||||
inline ImageScanFindings& AddEnhancedFindings(const EnhancedImageScanFinding& value) { m_enhancedFindingsHasBeenSet = true; m_enhancedFindings.push_back(value); return *this; }
|
||||
inline ImageScanFindings& AddEnhancedFindings(EnhancedImageScanFinding&& value) { m_enhancedFindingsHasBeenSet = true; m_enhancedFindings.push_back(std::move(value)); return *this; }
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::Utils::DateTime m_imageScanCompletedAt;
|
||||
bool m_imageScanCompletedAtHasBeenSet = false;
|
||||
|
||||
Aws::Utils::DateTime m_vulnerabilitySourceUpdatedAt;
|
||||
bool m_vulnerabilitySourceUpdatedAtHasBeenSet = false;
|
||||
|
||||
Aws::Map<FindingSeverity, int> m_findingSeverityCounts;
|
||||
bool m_findingSeverityCountsHasBeenSet = false;
|
||||
|
||||
Aws::Vector<ImageScanFinding> m_findings;
|
||||
bool m_findingsHasBeenSet = false;
|
||||
|
||||
Aws::Vector<EnhancedImageScanFinding> m_enhancedFindings;
|
||||
bool m_enhancedFindingsHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,93 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/core/utils/DateTime.h>
|
||||
#include <aws/core/utils/memory/stl/AWSMap.h>
|
||||
#include <aws/ecr/model/FindingSeverity.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p>A summary of the last completed image scan.</p><p><h3>See Also:</h3> <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/ImageScanFindingsSummary">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class ImageScanFindingsSummary
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API ImageScanFindingsSummary();
|
||||
AWS_ECR_API ImageScanFindingsSummary(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_ECR_API ImageScanFindingsSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The time of the last completed image scan.</p>
|
||||
*/
|
||||
inline const Aws::Utils::DateTime& GetImageScanCompletedAt() const{ return m_imageScanCompletedAt; }
|
||||
inline bool ImageScanCompletedAtHasBeenSet() const { return m_imageScanCompletedAtHasBeenSet; }
|
||||
inline void SetImageScanCompletedAt(const Aws::Utils::DateTime& value) { m_imageScanCompletedAtHasBeenSet = true; m_imageScanCompletedAt = value; }
|
||||
inline void SetImageScanCompletedAt(Aws::Utils::DateTime&& value) { m_imageScanCompletedAtHasBeenSet = true; m_imageScanCompletedAt = std::move(value); }
|
||||
inline ImageScanFindingsSummary& WithImageScanCompletedAt(const Aws::Utils::DateTime& value) { SetImageScanCompletedAt(value); return *this;}
|
||||
inline ImageScanFindingsSummary& WithImageScanCompletedAt(Aws::Utils::DateTime&& value) { SetImageScanCompletedAt(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The time when the vulnerability data was last scanned.</p>
|
||||
*/
|
||||
inline const Aws::Utils::DateTime& GetVulnerabilitySourceUpdatedAt() const{ return m_vulnerabilitySourceUpdatedAt; }
|
||||
inline bool VulnerabilitySourceUpdatedAtHasBeenSet() const { return m_vulnerabilitySourceUpdatedAtHasBeenSet; }
|
||||
inline void SetVulnerabilitySourceUpdatedAt(const Aws::Utils::DateTime& value) { m_vulnerabilitySourceUpdatedAtHasBeenSet = true; m_vulnerabilitySourceUpdatedAt = value; }
|
||||
inline void SetVulnerabilitySourceUpdatedAt(Aws::Utils::DateTime&& value) { m_vulnerabilitySourceUpdatedAtHasBeenSet = true; m_vulnerabilitySourceUpdatedAt = std::move(value); }
|
||||
inline ImageScanFindingsSummary& WithVulnerabilitySourceUpdatedAt(const Aws::Utils::DateTime& value) { SetVulnerabilitySourceUpdatedAt(value); return *this;}
|
||||
inline ImageScanFindingsSummary& WithVulnerabilitySourceUpdatedAt(Aws::Utils::DateTime&& value) { SetVulnerabilitySourceUpdatedAt(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The image vulnerability counts, sorted by severity.</p>
|
||||
*/
|
||||
inline const Aws::Map<FindingSeverity, int>& GetFindingSeverityCounts() const{ return m_findingSeverityCounts; }
|
||||
inline bool FindingSeverityCountsHasBeenSet() const { return m_findingSeverityCountsHasBeenSet; }
|
||||
inline void SetFindingSeverityCounts(const Aws::Map<FindingSeverity, int>& value) { m_findingSeverityCountsHasBeenSet = true; m_findingSeverityCounts = value; }
|
||||
inline void SetFindingSeverityCounts(Aws::Map<FindingSeverity, int>&& value) { m_findingSeverityCountsHasBeenSet = true; m_findingSeverityCounts = std::move(value); }
|
||||
inline ImageScanFindingsSummary& WithFindingSeverityCounts(const Aws::Map<FindingSeverity, int>& value) { SetFindingSeverityCounts(value); return *this;}
|
||||
inline ImageScanFindingsSummary& WithFindingSeverityCounts(Aws::Map<FindingSeverity, int>&& value) { SetFindingSeverityCounts(std::move(value)); return *this;}
|
||||
inline ImageScanFindingsSummary& AddFindingSeverityCounts(const FindingSeverity& key, int value) { m_findingSeverityCountsHasBeenSet = true; m_findingSeverityCounts.emplace(key, value); return *this; }
|
||||
inline ImageScanFindingsSummary& AddFindingSeverityCounts(FindingSeverity&& key, int value) { m_findingSeverityCountsHasBeenSet = true; m_findingSeverityCounts.emplace(std::move(key), value); return *this; }
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::Utils::DateTime m_imageScanCompletedAt;
|
||||
bool m_imageScanCompletedAtHasBeenSet = false;
|
||||
|
||||
Aws::Utils::DateTime m_vulnerabilitySourceUpdatedAt;
|
||||
bool m_vulnerabilitySourceUpdatedAtHasBeenSet = false;
|
||||
|
||||
Aws::Map<FindingSeverity, int> m_findingSeverityCounts;
|
||||
bool m_findingSeverityCountsHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,77 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/ecr/model/ScanStatus.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p>The current status of an image scan.</p><p><h3>See Also:</h3> <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/ImageScanStatus">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class ImageScanStatus
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API ImageScanStatus();
|
||||
AWS_ECR_API ImageScanStatus(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_ECR_API ImageScanStatus& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The current state of an image scan.</p>
|
||||
*/
|
||||
inline const ScanStatus& GetStatus() const{ return m_status; }
|
||||
inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
|
||||
inline void SetStatus(const ScanStatus& value) { m_statusHasBeenSet = true; m_status = value; }
|
||||
inline void SetStatus(ScanStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
|
||||
inline ImageScanStatus& WithStatus(const ScanStatus& value) { SetStatus(value); return *this;}
|
||||
inline ImageScanStatus& WithStatus(ScanStatus&& value) { SetStatus(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The description of the image scan status.</p>
|
||||
*/
|
||||
inline const Aws::String& GetDescription() const{ return m_description; }
|
||||
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
|
||||
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
|
||||
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
|
||||
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
|
||||
inline ImageScanStatus& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
|
||||
inline ImageScanStatus& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
|
||||
inline ImageScanStatus& WithDescription(const char* value) { SetDescription(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
ScanStatus m_status;
|
||||
bool m_statusHasBeenSet = false;
|
||||
|
||||
Aws::String m_description;
|
||||
bool m_descriptionHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,62 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p>The image scanning configuration for a repository.</p><p><h3>See Also:</h3>
|
||||
* <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/ImageScanningConfiguration">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class ImageScanningConfiguration
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API ImageScanningConfiguration();
|
||||
AWS_ECR_API ImageScanningConfiguration(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_ECR_API ImageScanningConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The setting that determines whether images are scanned after being pushed to
|
||||
* a repository. If set to <code>true</code>, images will be scanned after being
|
||||
* pushed. If this parameter is not specified, it will default to
|
||||
* <code>false</code> and images will not be scanned unless a scan is manually
|
||||
* started with the <a
|
||||
* href="https://docs.aws.amazon.com/AmazonECR/latest/APIReference/API_StartImageScan.html">API_StartImageScan</a>
|
||||
* API.</p>
|
||||
*/
|
||||
inline bool GetScanOnPush() const{ return m_scanOnPush; }
|
||||
inline bool ScanOnPushHasBeenSet() const { return m_scanOnPushHasBeenSet; }
|
||||
inline void SetScanOnPush(bool value) { m_scanOnPushHasBeenSet = true; m_scanOnPush = value; }
|
||||
inline ImageScanningConfiguration& WithScanOnPush(bool value) { SetScanOnPush(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
bool m_scanOnPush;
|
||||
bool m_scanOnPushHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,31 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
enum class ImageTagMutability
|
||||
{
|
||||
NOT_SET,
|
||||
MUTABLE,
|
||||
IMMUTABLE
|
||||
};
|
||||
|
||||
namespace ImageTagMutabilityMapper
|
||||
{
|
||||
AWS_ECR_API ImageTagMutability GetImageTagMutabilityForName(const Aws::String& name);
|
||||
|
||||
AWS_ECR_API Aws::String GetNameForImageTagMutability(ImageTagMutability value);
|
||||
} // namespace ImageTagMutabilityMapper
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,77 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/ecr/ECRRequest.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
*/
|
||||
class InitiateLayerUploadRequest : public ECRRequest
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API InitiateLayerUploadRequest();
|
||||
|
||||
// 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 "InitiateLayerUpload"; }
|
||||
|
||||
AWS_ECR_API Aws::String SerializePayload() const override;
|
||||
|
||||
AWS_ECR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The Amazon Web Services account ID associated with the registry to which you
|
||||
* intend to upload layers. If you do not specify a registry, the default registry
|
||||
* is assumed.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRegistryId() const{ return m_registryId; }
|
||||
inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
|
||||
inline void SetRegistryId(const Aws::String& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
|
||||
inline void SetRegistryId(Aws::String&& value) { m_registryIdHasBeenSet = true; m_registryId = std::move(value); }
|
||||
inline void SetRegistryId(const char* value) { m_registryIdHasBeenSet = true; m_registryId.assign(value); }
|
||||
inline InitiateLayerUploadRequest& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
|
||||
inline InitiateLayerUploadRequest& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
|
||||
inline InitiateLayerUploadRequest& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The name of the repository to which you intend to upload layers.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
|
||||
inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
|
||||
inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
|
||||
inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
|
||||
inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
|
||||
inline InitiateLayerUploadRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
|
||||
inline InitiateLayerUploadRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
|
||||
inline InitiateLayerUploadRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_registryId;
|
||||
bool m_registryIdHasBeenSet = false;
|
||||
|
||||
Aws::String m_repositoryName;
|
||||
bool m_repositoryNameHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,80 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
template<typename RESULT_TYPE>
|
||||
class AmazonWebServiceResult;
|
||||
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class InitiateLayerUploadResult
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API InitiateLayerUploadResult();
|
||||
AWS_ECR_API InitiateLayerUploadResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
AWS_ECR_API InitiateLayerUploadResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The upload ID for the layer upload. This parameter is passed to further
|
||||
* <a>UploadLayerPart</a> and <a>CompleteLayerUpload</a> operations.</p>
|
||||
*/
|
||||
inline const Aws::String& GetUploadId() const{ return m_uploadId; }
|
||||
inline void SetUploadId(const Aws::String& value) { m_uploadId = value; }
|
||||
inline void SetUploadId(Aws::String&& value) { m_uploadId = std::move(value); }
|
||||
inline void SetUploadId(const char* value) { m_uploadId.assign(value); }
|
||||
inline InitiateLayerUploadResult& WithUploadId(const Aws::String& value) { SetUploadId(value); return *this;}
|
||||
inline InitiateLayerUploadResult& WithUploadId(Aws::String&& value) { SetUploadId(std::move(value)); return *this;}
|
||||
inline InitiateLayerUploadResult& WithUploadId(const char* value) { SetUploadId(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The size, in bytes, that Amazon ECR expects future layer part uploads to
|
||||
* be.</p>
|
||||
*/
|
||||
inline long long GetPartSize() const{ return m_partSize; }
|
||||
inline void SetPartSize(long long value) { m_partSize = value; }
|
||||
inline InitiateLayerUploadResult& WithPartSize(long long value) { SetPartSize(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetRequestId() const{ return m_requestId; }
|
||||
inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
|
||||
inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
|
||||
inline void SetRequestId(const char* value) { m_requestId.assign(value); }
|
||||
inline InitiateLayerUploadResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
|
||||
inline InitiateLayerUploadResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
|
||||
inline InitiateLayerUploadResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_uploadId;
|
||||
|
||||
long long m_partSize;
|
||||
|
||||
Aws::String m_requestId;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,128 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p>The layer part size is not valid, or the first byte specified is not
|
||||
* consecutive to the last byte of a previous layer part upload.</p><p><h3>See
|
||||
* Also:</h3> <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/InvalidLayerPartException">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class InvalidLayerPartException
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API InvalidLayerPartException();
|
||||
AWS_ECR_API InvalidLayerPartException(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_ECR_API InvalidLayerPartException& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The registry ID associated with the exception.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRegistryId() const{ return m_registryId; }
|
||||
inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
|
||||
inline void SetRegistryId(const Aws::String& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
|
||||
inline void SetRegistryId(Aws::String&& value) { m_registryIdHasBeenSet = true; m_registryId = std::move(value); }
|
||||
inline void SetRegistryId(const char* value) { m_registryIdHasBeenSet = true; m_registryId.assign(value); }
|
||||
inline InvalidLayerPartException& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
|
||||
inline InvalidLayerPartException& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
|
||||
inline InvalidLayerPartException& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The repository name associated with the exception.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
|
||||
inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
|
||||
inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
|
||||
inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
|
||||
inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
|
||||
inline InvalidLayerPartException& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
|
||||
inline InvalidLayerPartException& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
|
||||
inline InvalidLayerPartException& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The upload ID associated with the exception.</p>
|
||||
*/
|
||||
inline const Aws::String& GetUploadId() const{ return m_uploadId; }
|
||||
inline bool UploadIdHasBeenSet() const { return m_uploadIdHasBeenSet; }
|
||||
inline void SetUploadId(const Aws::String& value) { m_uploadIdHasBeenSet = true; m_uploadId = value; }
|
||||
inline void SetUploadId(Aws::String&& value) { m_uploadIdHasBeenSet = true; m_uploadId = std::move(value); }
|
||||
inline void SetUploadId(const char* value) { m_uploadIdHasBeenSet = true; m_uploadId.assign(value); }
|
||||
inline InvalidLayerPartException& WithUploadId(const Aws::String& value) { SetUploadId(value); return *this;}
|
||||
inline InvalidLayerPartException& WithUploadId(Aws::String&& value) { SetUploadId(std::move(value)); return *this;}
|
||||
inline InvalidLayerPartException& WithUploadId(const char* value) { SetUploadId(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The last valid byte received from the layer part upload that is associated
|
||||
* with the exception.</p>
|
||||
*/
|
||||
inline long long GetLastValidByteReceived() const{ return m_lastValidByteReceived; }
|
||||
inline bool LastValidByteReceivedHasBeenSet() const { return m_lastValidByteReceivedHasBeenSet; }
|
||||
inline void SetLastValidByteReceived(long long value) { m_lastValidByteReceivedHasBeenSet = true; m_lastValidByteReceived = value; }
|
||||
inline InvalidLayerPartException& WithLastValidByteReceived(long long value) { SetLastValidByteReceived(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The error message associated with the exception.</p>
|
||||
*/
|
||||
inline const Aws::String& GetMessage() const{ return m_message; }
|
||||
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
|
||||
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
|
||||
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
|
||||
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
|
||||
inline InvalidLayerPartException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
|
||||
inline InvalidLayerPartException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
|
||||
inline InvalidLayerPartException& WithMessage(const char* value) { SetMessage(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_lastValidByteReceived;
|
||||
bool m_lastValidByteReceivedHasBeenSet = false;
|
||||
|
||||
Aws::String m_message;
|
||||
bool m_messageHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,76 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p>The operation failed due to a KMS exception.</p><p><h3>See Also:</h3> <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/KmsException">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class KmsException
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API KmsException();
|
||||
AWS_ECR_API KmsException(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_ECR_API KmsException& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetMessage() const{ return m_message; }
|
||||
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
|
||||
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
|
||||
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
|
||||
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
|
||||
inline KmsException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
|
||||
inline KmsException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
|
||||
inline KmsException& WithMessage(const char* value) { SetMessage(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The error code returned by KMS.</p>
|
||||
*/
|
||||
inline const Aws::String& GetKmsError() const{ return m_kmsError; }
|
||||
inline bool KmsErrorHasBeenSet() const { return m_kmsErrorHasBeenSet; }
|
||||
inline void SetKmsError(const Aws::String& value) { m_kmsErrorHasBeenSet = true; m_kmsError = value; }
|
||||
inline void SetKmsError(Aws::String&& value) { m_kmsErrorHasBeenSet = true; m_kmsError = std::move(value); }
|
||||
inline void SetKmsError(const char* value) { m_kmsErrorHasBeenSet = true; m_kmsError.assign(value); }
|
||||
inline KmsException& WithKmsError(const Aws::String& value) { SetKmsError(value); return *this;}
|
||||
inline KmsException& WithKmsError(Aws::String&& value) { SetKmsError(std::move(value)); return *this;}
|
||||
inline KmsException& WithKmsError(const char* value) { SetKmsError(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_message;
|
||||
bool m_messageHasBeenSet = false;
|
||||
|
||||
Aws::String m_kmsError;
|
||||
bool m_kmsErrorHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,109 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/ecr/model/LayerAvailability.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p>An object representing an Amazon ECR image layer.</p><p><h3>See Also:</h3>
|
||||
* <a href="http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/Layer">AWS API
|
||||
* Reference</a></p>
|
||||
*/
|
||||
class Layer
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API Layer();
|
||||
AWS_ECR_API Layer(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_ECR_API Layer& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The <code>sha256</code> digest of the image layer.</p>
|
||||
*/
|
||||
inline const Aws::String& GetLayerDigest() const{ return m_layerDigest; }
|
||||
inline bool LayerDigestHasBeenSet() const { return m_layerDigestHasBeenSet; }
|
||||
inline void SetLayerDigest(const Aws::String& value) { m_layerDigestHasBeenSet = true; m_layerDigest = value; }
|
||||
inline void SetLayerDigest(Aws::String&& value) { m_layerDigestHasBeenSet = true; m_layerDigest = std::move(value); }
|
||||
inline void SetLayerDigest(const char* value) { m_layerDigestHasBeenSet = true; m_layerDigest.assign(value); }
|
||||
inline Layer& WithLayerDigest(const Aws::String& value) { SetLayerDigest(value); return *this;}
|
||||
inline Layer& WithLayerDigest(Aws::String&& value) { SetLayerDigest(std::move(value)); return *this;}
|
||||
inline Layer& WithLayerDigest(const char* value) { SetLayerDigest(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The availability status of the image layer.</p>
|
||||
*/
|
||||
inline const LayerAvailability& GetLayerAvailability() const{ return m_layerAvailability; }
|
||||
inline bool LayerAvailabilityHasBeenSet() const { return m_layerAvailabilityHasBeenSet; }
|
||||
inline void SetLayerAvailability(const LayerAvailability& value) { m_layerAvailabilityHasBeenSet = true; m_layerAvailability = value; }
|
||||
inline void SetLayerAvailability(LayerAvailability&& value) { m_layerAvailabilityHasBeenSet = true; m_layerAvailability = std::move(value); }
|
||||
inline Layer& WithLayerAvailability(const LayerAvailability& value) { SetLayerAvailability(value); return *this;}
|
||||
inline Layer& WithLayerAvailability(LayerAvailability&& value) { SetLayerAvailability(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The size, in bytes, of the image layer.</p>
|
||||
*/
|
||||
inline long long GetLayerSize() const{ return m_layerSize; }
|
||||
inline bool LayerSizeHasBeenSet() const { return m_layerSizeHasBeenSet; }
|
||||
inline void SetLayerSize(long long value) { m_layerSizeHasBeenSet = true; m_layerSize = value; }
|
||||
inline Layer& WithLayerSize(long long value) { SetLayerSize(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The media type of the layer, such as
|
||||
* <code>application/vnd.docker.image.rootfs.diff.tar.gzip</code> or
|
||||
* <code>application/vnd.oci.image.layer.v1.tar+gzip</code>.</p>
|
||||
*/
|
||||
inline const Aws::String& GetMediaType() const{ return m_mediaType; }
|
||||
inline bool MediaTypeHasBeenSet() const { return m_mediaTypeHasBeenSet; }
|
||||
inline void SetMediaType(const Aws::String& value) { m_mediaTypeHasBeenSet = true; m_mediaType = value; }
|
||||
inline void SetMediaType(Aws::String&& value) { m_mediaTypeHasBeenSet = true; m_mediaType = std::move(value); }
|
||||
inline void SetMediaType(const char* value) { m_mediaTypeHasBeenSet = true; m_mediaType.assign(value); }
|
||||
inline Layer& WithMediaType(const Aws::String& value) { SetMediaType(value); return *this;}
|
||||
inline Layer& WithMediaType(Aws::String&& value) { SetMediaType(std::move(value)); return *this;}
|
||||
inline Layer& WithMediaType(const char* value) { SetMediaType(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_layerDigest;
|
||||
bool m_layerDigestHasBeenSet = false;
|
||||
|
||||
LayerAvailability m_layerAvailability;
|
||||
bool m_layerAvailabilityHasBeenSet = false;
|
||||
|
||||
long long m_layerSize;
|
||||
bool m_layerSizeHasBeenSet = false;
|
||||
|
||||
Aws::String m_mediaType;
|
||||
bool m_mediaTypeHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,31 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
enum class LayerAvailability
|
||||
{
|
||||
NOT_SET,
|
||||
AVAILABLE,
|
||||
UNAVAILABLE
|
||||
};
|
||||
|
||||
namespace LayerAvailabilityMapper
|
||||
{
|
||||
AWS_ECR_API LayerAvailability GetLayerAvailabilityForName(const Aws::String& name);
|
||||
|
||||
AWS_ECR_API Aws::String GetNameForLayerAvailability(LayerAvailability value);
|
||||
} // namespace LayerAvailabilityMapper
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,95 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/ecr/model/LayerFailureCode.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p>An object representing an Amazon ECR image layer failure.</p><p><h3>See
|
||||
* Also:</h3> <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/LayerFailure">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class LayerFailure
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API LayerFailure();
|
||||
AWS_ECR_API LayerFailure(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_ECR_API LayerFailure& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The layer digest associated with the failure.</p>
|
||||
*/
|
||||
inline const Aws::String& GetLayerDigest() const{ return m_layerDigest; }
|
||||
inline bool LayerDigestHasBeenSet() const { return m_layerDigestHasBeenSet; }
|
||||
inline void SetLayerDigest(const Aws::String& value) { m_layerDigestHasBeenSet = true; m_layerDigest = value; }
|
||||
inline void SetLayerDigest(Aws::String&& value) { m_layerDigestHasBeenSet = true; m_layerDigest = std::move(value); }
|
||||
inline void SetLayerDigest(const char* value) { m_layerDigestHasBeenSet = true; m_layerDigest.assign(value); }
|
||||
inline LayerFailure& WithLayerDigest(const Aws::String& value) { SetLayerDigest(value); return *this;}
|
||||
inline LayerFailure& WithLayerDigest(Aws::String&& value) { SetLayerDigest(std::move(value)); return *this;}
|
||||
inline LayerFailure& WithLayerDigest(const char* value) { SetLayerDigest(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The failure code associated with the failure.</p>
|
||||
*/
|
||||
inline const LayerFailureCode& GetFailureCode() const{ return m_failureCode; }
|
||||
inline bool FailureCodeHasBeenSet() const { return m_failureCodeHasBeenSet; }
|
||||
inline void SetFailureCode(const LayerFailureCode& value) { m_failureCodeHasBeenSet = true; m_failureCode = value; }
|
||||
inline void SetFailureCode(LayerFailureCode&& value) { m_failureCodeHasBeenSet = true; m_failureCode = std::move(value); }
|
||||
inline LayerFailure& WithFailureCode(const LayerFailureCode& value) { SetFailureCode(value); return *this;}
|
||||
inline LayerFailure& WithFailureCode(LayerFailureCode&& value) { SetFailureCode(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The reason for the failure.</p>
|
||||
*/
|
||||
inline const Aws::String& GetFailureReason() const{ return m_failureReason; }
|
||||
inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
|
||||
inline void SetFailureReason(const Aws::String& value) { m_failureReasonHasBeenSet = true; m_failureReason = value; }
|
||||
inline void SetFailureReason(Aws::String&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::move(value); }
|
||||
inline void SetFailureReason(const char* value) { m_failureReasonHasBeenSet = true; m_failureReason.assign(value); }
|
||||
inline LayerFailure& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;}
|
||||
inline LayerFailure& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;}
|
||||
inline LayerFailure& WithFailureReason(const char* value) { SetFailureReason(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_layerDigest;
|
||||
bool m_layerDigestHasBeenSet = false;
|
||||
|
||||
LayerFailureCode m_failureCode;
|
||||
bool m_failureCodeHasBeenSet = false;
|
||||
|
||||
Aws::String m_failureReason;
|
||||
bool m_failureReasonHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,31 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
enum class LayerFailureCode
|
||||
{
|
||||
NOT_SET,
|
||||
InvalidLayerDigest,
|
||||
MissingLayerDigest
|
||||
};
|
||||
|
||||
namespace LayerFailureCodeMapper
|
||||
{
|
||||
AWS_ECR_API LayerFailureCode GetLayerFailureCodeForName(const Aws::String& name);
|
||||
|
||||
AWS_ECR_API Aws::String GetNameForLayerFailureCode(LayerFailureCode value);
|
||||
} // namespace LayerFailureCodeMapper
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,59 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/ecr/model/TagStatus.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p>The filter for the lifecycle policy preview.</p><p><h3>See Also:</h3> <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/LifecyclePolicyPreviewFilter">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class LifecyclePolicyPreviewFilter
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API LifecyclePolicyPreviewFilter();
|
||||
AWS_ECR_API LifecyclePolicyPreviewFilter(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_ECR_API LifecyclePolicyPreviewFilter& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The tag status of the image.</p>
|
||||
*/
|
||||
inline const TagStatus& GetTagStatus() const{ return m_tagStatus; }
|
||||
inline bool TagStatusHasBeenSet() const { return m_tagStatusHasBeenSet; }
|
||||
inline void SetTagStatus(const TagStatus& value) { m_tagStatusHasBeenSet = true; m_tagStatus = value; }
|
||||
inline void SetTagStatus(TagStatus&& value) { m_tagStatusHasBeenSet = true; m_tagStatus = std::move(value); }
|
||||
inline LifecyclePolicyPreviewFilter& WithTagStatus(const TagStatus& value) { SetTagStatus(value); return *this;}
|
||||
inline LifecyclePolicyPreviewFilter& WithTagStatus(TagStatus&& value) { SetTagStatus(std::move(value)); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
TagStatus m_tagStatus;
|
||||
bool m_tagStatusHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,126 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSVector.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/core/utils/DateTime.h>
|
||||
#include <aws/ecr/model/LifecyclePolicyRuleAction.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p>The result of the lifecycle policy preview.</p><p><h3>See Also:</h3> <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/LifecyclePolicyPreviewResult">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class LifecyclePolicyPreviewResult
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API LifecyclePolicyPreviewResult();
|
||||
AWS_ECR_API LifecyclePolicyPreviewResult(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_ECR_API LifecyclePolicyPreviewResult& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The list of tags associated with this image.</p>
|
||||
*/
|
||||
inline const Aws::Vector<Aws::String>& GetImageTags() const{ return m_imageTags; }
|
||||
inline bool ImageTagsHasBeenSet() const { return m_imageTagsHasBeenSet; }
|
||||
inline void SetImageTags(const Aws::Vector<Aws::String>& value) { m_imageTagsHasBeenSet = true; m_imageTags = value; }
|
||||
inline void SetImageTags(Aws::Vector<Aws::String>&& value) { m_imageTagsHasBeenSet = true; m_imageTags = std::move(value); }
|
||||
inline LifecyclePolicyPreviewResult& WithImageTags(const Aws::Vector<Aws::String>& value) { SetImageTags(value); return *this;}
|
||||
inline LifecyclePolicyPreviewResult& WithImageTags(Aws::Vector<Aws::String>&& value) { SetImageTags(std::move(value)); return *this;}
|
||||
inline LifecyclePolicyPreviewResult& AddImageTags(const Aws::String& value) { m_imageTagsHasBeenSet = true; m_imageTags.push_back(value); return *this; }
|
||||
inline LifecyclePolicyPreviewResult& AddImageTags(Aws::String&& value) { m_imageTagsHasBeenSet = true; m_imageTags.push_back(std::move(value)); return *this; }
|
||||
inline LifecyclePolicyPreviewResult& AddImageTags(const char* value) { m_imageTagsHasBeenSet = true; m_imageTags.push_back(value); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The <code>sha256</code> digest of the image manifest.</p>
|
||||
*/
|
||||
inline const Aws::String& GetImageDigest() const{ return m_imageDigest; }
|
||||
inline bool ImageDigestHasBeenSet() const { return m_imageDigestHasBeenSet; }
|
||||
inline void SetImageDigest(const Aws::String& value) { m_imageDigestHasBeenSet = true; m_imageDigest = value; }
|
||||
inline void SetImageDigest(Aws::String&& value) { m_imageDigestHasBeenSet = true; m_imageDigest = std::move(value); }
|
||||
inline void SetImageDigest(const char* value) { m_imageDigestHasBeenSet = true; m_imageDigest.assign(value); }
|
||||
inline LifecyclePolicyPreviewResult& WithImageDigest(const Aws::String& value) { SetImageDigest(value); return *this;}
|
||||
inline LifecyclePolicyPreviewResult& WithImageDigest(Aws::String&& value) { SetImageDigest(std::move(value)); return *this;}
|
||||
inline LifecyclePolicyPreviewResult& WithImageDigest(const char* value) { SetImageDigest(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The date and time, expressed in standard JavaScript date format, at which the
|
||||
* current image was pushed to the repository.</p>
|
||||
*/
|
||||
inline const Aws::Utils::DateTime& GetImagePushedAt() const{ return m_imagePushedAt; }
|
||||
inline bool ImagePushedAtHasBeenSet() const { return m_imagePushedAtHasBeenSet; }
|
||||
inline void SetImagePushedAt(const Aws::Utils::DateTime& value) { m_imagePushedAtHasBeenSet = true; m_imagePushedAt = value; }
|
||||
inline void SetImagePushedAt(Aws::Utils::DateTime&& value) { m_imagePushedAtHasBeenSet = true; m_imagePushedAt = std::move(value); }
|
||||
inline LifecyclePolicyPreviewResult& WithImagePushedAt(const Aws::Utils::DateTime& value) { SetImagePushedAt(value); return *this;}
|
||||
inline LifecyclePolicyPreviewResult& WithImagePushedAt(Aws::Utils::DateTime&& value) { SetImagePushedAt(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The type of action to be taken.</p>
|
||||
*/
|
||||
inline const LifecyclePolicyRuleAction& GetAction() const{ return m_action; }
|
||||
inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
|
||||
inline void SetAction(const LifecyclePolicyRuleAction& value) { m_actionHasBeenSet = true; m_action = value; }
|
||||
inline void SetAction(LifecyclePolicyRuleAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
|
||||
inline LifecyclePolicyPreviewResult& WithAction(const LifecyclePolicyRuleAction& value) { SetAction(value); return *this;}
|
||||
inline LifecyclePolicyPreviewResult& WithAction(LifecyclePolicyRuleAction&& value) { SetAction(std::move(value)); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The priority of the applied rule.</p>
|
||||
*/
|
||||
inline int GetAppliedRulePriority() const{ return m_appliedRulePriority; }
|
||||
inline bool AppliedRulePriorityHasBeenSet() const { return m_appliedRulePriorityHasBeenSet; }
|
||||
inline void SetAppliedRulePriority(int value) { m_appliedRulePriorityHasBeenSet = true; m_appliedRulePriority = value; }
|
||||
inline LifecyclePolicyPreviewResult& WithAppliedRulePriority(int value) { SetAppliedRulePriority(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::Vector<Aws::String> m_imageTags;
|
||||
bool m_imageTagsHasBeenSet = false;
|
||||
|
||||
Aws::String m_imageDigest;
|
||||
bool m_imageDigestHasBeenSet = false;
|
||||
|
||||
Aws::Utils::DateTime m_imagePushedAt;
|
||||
bool m_imagePushedAtHasBeenSet = false;
|
||||
|
||||
LifecyclePolicyRuleAction m_action;
|
||||
bool m_actionHasBeenSet = false;
|
||||
|
||||
int m_appliedRulePriority;
|
||||
bool m_appliedRulePriorityHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,33 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
enum class LifecyclePolicyPreviewStatus
|
||||
{
|
||||
NOT_SET,
|
||||
IN_PROGRESS,
|
||||
COMPLETE,
|
||||
EXPIRED,
|
||||
FAILED
|
||||
};
|
||||
|
||||
namespace LifecyclePolicyPreviewStatusMapper
|
||||
{
|
||||
AWS_ECR_API LifecyclePolicyPreviewStatus GetLifecyclePolicyPreviewStatusForName(const Aws::String& name);
|
||||
|
||||
AWS_ECR_API Aws::String GetNameForLifecyclePolicyPreviewStatus(LifecyclePolicyPreviewStatus value);
|
||||
} // namespace LifecyclePolicyPreviewStatusMapper
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,56 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p>The summary of the lifecycle policy preview request.</p><p><h3>See Also:</h3>
|
||||
* <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/LifecyclePolicyPreviewSummary">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class LifecyclePolicyPreviewSummary
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API LifecyclePolicyPreviewSummary();
|
||||
AWS_ECR_API LifecyclePolicyPreviewSummary(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_ECR_API LifecyclePolicyPreviewSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The number of expiring images.</p>
|
||||
*/
|
||||
inline int GetExpiringImageTotalCount() const{ return m_expiringImageTotalCount; }
|
||||
inline bool ExpiringImageTotalCountHasBeenSet() const { return m_expiringImageTotalCountHasBeenSet; }
|
||||
inline void SetExpiringImageTotalCount(int value) { m_expiringImageTotalCountHasBeenSet = true; m_expiringImageTotalCount = value; }
|
||||
inline LifecyclePolicyPreviewSummary& WithExpiringImageTotalCount(int value) { SetExpiringImageTotalCount(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
int m_expiringImageTotalCount;
|
||||
bool m_expiringImageTotalCountHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,59 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/ecr/model/ImageActionType.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p>The type of action to be taken.</p><p><h3>See Also:</h3> <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/LifecyclePolicyRuleAction">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class LifecyclePolicyRuleAction
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API LifecyclePolicyRuleAction();
|
||||
AWS_ECR_API LifecyclePolicyRuleAction(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_ECR_API LifecyclePolicyRuleAction& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The type of action to be taken.</p>
|
||||
*/
|
||||
inline const ImageActionType& GetType() const{ return m_type; }
|
||||
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
|
||||
inline void SetType(const ImageActionType& value) { m_typeHasBeenSet = true; m_type = value; }
|
||||
inline void SetType(ImageActionType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
|
||||
inline LifecyclePolicyRuleAction& WithType(const ImageActionType& value) { SetType(value); return *this;}
|
||||
inline LifecyclePolicyRuleAction& WithType(ImageActionType&& value) { SetType(std::move(value)); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
ImageActionType m_type;
|
||||
bool m_typeHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,62 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/ecr/model/TagStatus.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
class JsonView;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
* <p>An object representing a filter on a <a>ListImages</a>
|
||||
* operation.</p><p><h3>See Also:</h3> <a
|
||||
* href="http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/ListImagesFilter">AWS
|
||||
* API Reference</a></p>
|
||||
*/
|
||||
class ListImagesFilter
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API ListImagesFilter();
|
||||
AWS_ECR_API ListImagesFilter(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_ECR_API ListImagesFilter& operator=(Aws::Utils::Json::JsonView jsonValue);
|
||||
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The tag status with which to filter your <a>ListImages</a> results. You can
|
||||
* filter results based on whether they are <code>TAGGED</code> or
|
||||
* <code>UNTAGGED</code>.</p>
|
||||
*/
|
||||
inline const TagStatus& GetTagStatus() const{ return m_tagStatus; }
|
||||
inline bool TagStatusHasBeenSet() const { return m_tagStatusHasBeenSet; }
|
||||
inline void SetTagStatus(const TagStatus& value) { m_tagStatusHasBeenSet = true; m_tagStatus = value; }
|
||||
inline void SetTagStatus(TagStatus&& value) { m_tagStatusHasBeenSet = true; m_tagStatus = std::move(value); }
|
||||
inline ListImagesFilter& WithTagStatus(const TagStatus& value) { SetTagStatus(value); return *this;}
|
||||
inline ListImagesFilter& WithTagStatus(TagStatus&& value) { SetTagStatus(std::move(value)); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
TagStatus m_tagStatus;
|
||||
bool m_tagStatusHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,138 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/ecr/ECRRequest.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/ecr/model/ListImagesFilter.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
*/
|
||||
class ListImagesRequest : public ECRRequest
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API ListImagesRequest();
|
||||
|
||||
// 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 "ListImages"; }
|
||||
|
||||
AWS_ECR_API Aws::String SerializePayload() const override;
|
||||
|
||||
AWS_ECR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The Amazon Web Services account ID associated with the registry that contains
|
||||
* the repository in which to list images. If you do not specify a registry, the
|
||||
* default registry is assumed.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRegistryId() const{ return m_registryId; }
|
||||
inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
|
||||
inline void SetRegistryId(const Aws::String& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
|
||||
inline void SetRegistryId(Aws::String&& value) { m_registryIdHasBeenSet = true; m_registryId = std::move(value); }
|
||||
inline void SetRegistryId(const char* value) { m_registryIdHasBeenSet = true; m_registryId.assign(value); }
|
||||
inline ListImagesRequest& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
|
||||
inline ListImagesRequest& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
|
||||
inline ListImagesRequest& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The repository with image IDs to be listed.</p>
|
||||
*/
|
||||
inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
|
||||
inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
|
||||
inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
|
||||
inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
|
||||
inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
|
||||
inline ListImagesRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
|
||||
inline ListImagesRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
|
||||
inline ListImagesRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The <code>nextToken</code> value returned from a previous paginated
|
||||
* <code>ListImages</code> request where <code>maxResults</code> was used and the
|
||||
* results exceeded the value of that parameter. Pagination continues from the end
|
||||
* of the previous results that returned the <code>nextToken</code> value. This
|
||||
* value is <code>null</code> when there are no more results to return.</p>
|
||||
* <p>This token should be treated as an opaque identifier that is only used to
|
||||
* retrieve the next items in a list and not for other programmatic purposes.</p>
|
||||
*
|
||||
*/
|
||||
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
|
||||
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
|
||||
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
|
||||
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
|
||||
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
|
||||
inline ListImagesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
|
||||
inline ListImagesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
|
||||
inline ListImagesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The maximum number of image results returned by <code>ListImages</code> in
|
||||
* paginated output. When this parameter is used, <code>ListImages</code> only
|
||||
* returns <code>maxResults</code> results in a single page along with a
|
||||
* <code>nextToken</code> response element. The remaining results of the initial
|
||||
* request can be seen by sending another <code>ListImages</code> request with the
|
||||
* returned <code>nextToken</code> value. This value can be between 1 and 1000. If
|
||||
* this parameter is not used, then <code>ListImages</code> returns up to 100
|
||||
* results and a <code>nextToken</code> value, if applicable.</p>
|
||||
*/
|
||||
inline int GetMaxResults() const{ return m_maxResults; }
|
||||
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
|
||||
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
|
||||
inline ListImagesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The filter key and value with which to filter your <code>ListImages</code>
|
||||
* results.</p>
|
||||
*/
|
||||
inline const ListImagesFilter& GetFilter() const{ return m_filter; }
|
||||
inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
|
||||
inline void SetFilter(const ListImagesFilter& value) { m_filterHasBeenSet = true; m_filter = value; }
|
||||
inline void SetFilter(ListImagesFilter&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
|
||||
inline ListImagesRequest& WithFilter(const ListImagesFilter& value) { SetFilter(value); return *this;}
|
||||
inline ListImagesRequest& WithFilter(ListImagesFilter&& value) { SetFilter(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_nextToken;
|
||||
bool m_nextTokenHasBeenSet = false;
|
||||
|
||||
int m_maxResults;
|
||||
bool m_maxResultsHasBeenSet = false;
|
||||
|
||||
ListImagesFilter m_filter;
|
||||
bool m_filterHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,88 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/core/utils/memory/stl/AWSVector.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <aws/ecr/model/ImageIdentifier.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
template<typename RESULT_TYPE>
|
||||
class AmazonWebServiceResult;
|
||||
|
||||
namespace Utils
|
||||
{
|
||||
namespace Json
|
||||
{
|
||||
class JsonValue;
|
||||
} // namespace Json
|
||||
} // namespace Utils
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ListImagesResult
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API ListImagesResult();
|
||||
AWS_ECR_API ListImagesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
AWS_ECR_API ListImagesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The list of image IDs for the requested repository.</p>
|
||||
*/
|
||||
inline const Aws::Vector<ImageIdentifier>& GetImageIds() const{ return m_imageIds; }
|
||||
inline void SetImageIds(const Aws::Vector<ImageIdentifier>& value) { m_imageIds = value; }
|
||||
inline void SetImageIds(Aws::Vector<ImageIdentifier>&& value) { m_imageIds = std::move(value); }
|
||||
inline ListImagesResult& WithImageIds(const Aws::Vector<ImageIdentifier>& value) { SetImageIds(value); return *this;}
|
||||
inline ListImagesResult& WithImageIds(Aws::Vector<ImageIdentifier>&& value) { SetImageIds(std::move(value)); return *this;}
|
||||
inline ListImagesResult& AddImageIds(const ImageIdentifier& value) { m_imageIds.push_back(value); return *this; }
|
||||
inline ListImagesResult& AddImageIds(ImageIdentifier&& value) { m_imageIds.push_back(std::move(value)); return *this; }
|
||||
///@}
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The <code>nextToken</code> value to include in a future
|
||||
* <code>ListImages</code> request. When the results of a <code>ListImages</code>
|
||||
* request exceed <code>maxResults</code>, this value can be used to retrieve the
|
||||
* next page of results. This value is <code>null</code> when there are no more
|
||||
* results to return.</p>
|
||||
*/
|
||||
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
|
||||
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
|
||||
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
|
||||
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
|
||||
inline ListImagesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
|
||||
inline ListImagesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
|
||||
inline ListImagesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
|
||||
///@}
|
||||
|
||||
///@{
|
||||
|
||||
inline const Aws::String& GetRequestId() const{ return m_requestId; }
|
||||
inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
|
||||
inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
|
||||
inline void SetRequestId(const char* value) { m_requestId.assign(value); }
|
||||
inline ListImagesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
|
||||
inline ListImagesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
|
||||
inline ListImagesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::Vector<ImageIdentifier> m_imageIds;
|
||||
|
||||
Aws::String m_nextToken;
|
||||
|
||||
Aws::String m_requestId;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
@@ -0,0 +1,60 @@
|
||||
/**
|
||||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
* SPDX-License-Identifier: Apache-2.0.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <aws/ecr/ECR_EXPORTS.h>
|
||||
#include <aws/ecr/ECRRequest.h>
|
||||
#include <aws/core/utils/memory/stl/AWSString.h>
|
||||
#include <utility>
|
||||
|
||||
namespace Aws
|
||||
{
|
||||
namespace ECR
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
|
||||
/**
|
||||
*/
|
||||
class ListTagsForResourceRequest : public ECRRequest
|
||||
{
|
||||
public:
|
||||
AWS_ECR_API ListTagsForResourceRequest();
|
||||
|
||||
// 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 "ListTagsForResource"; }
|
||||
|
||||
AWS_ECR_API Aws::String SerializePayload() const override;
|
||||
|
||||
AWS_ECR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
|
||||
|
||||
|
||||
///@{
|
||||
/**
|
||||
* <p>The Amazon Resource Name (ARN) that identifies the resource for which to list
|
||||
* the tags. Currently, the only supported resource is an Amazon ECR
|
||||
* repository.</p>
|
||||
*/
|
||||
inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
|
||||
inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
|
||||
inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
|
||||
inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
|
||||
inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
|
||||
inline ListTagsForResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
|
||||
inline ListTagsForResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
|
||||
inline ListTagsForResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
|
||||
///@}
|
||||
private:
|
||||
|
||||
Aws::String m_resourceArn;
|
||||
bool m_resourceArnHasBeenSet = false;
|
||||
};
|
||||
|
||||
} // namespace Model
|
||||
} // namespace ECR
|
||||
} // namespace Aws
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user