/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template 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& result); AWS_ECR_API CreatePullThroughCacheRuleResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The Amazon ECR repository prefix associated with the pull through cache * rule.

*/ inline const Aws::String& GetEcrRepositoryPrefix() const{ return m_ecrRepositoryPrefix; } /** *

The Amazon ECR repository prefix associated with the pull through cache * rule.

*/ inline void SetEcrRepositoryPrefix(const Aws::String& value) { m_ecrRepositoryPrefix = value; } /** *

The Amazon ECR repository prefix associated with the pull through cache * rule.

*/ inline void SetEcrRepositoryPrefix(Aws::String&& value) { m_ecrRepositoryPrefix = std::move(value); } /** *

The Amazon ECR repository prefix associated with the pull through cache * rule.

*/ inline void SetEcrRepositoryPrefix(const char* value) { m_ecrRepositoryPrefix.assign(value); } /** *

The Amazon ECR repository prefix associated with the pull through cache * rule.

*/ inline CreatePullThroughCacheRuleResult& WithEcrRepositoryPrefix(const Aws::String& value) { SetEcrRepositoryPrefix(value); return *this;} /** *

The Amazon ECR repository prefix associated with the pull through cache * rule.

*/ inline CreatePullThroughCacheRuleResult& WithEcrRepositoryPrefix(Aws::String&& value) { SetEcrRepositoryPrefix(std::move(value)); return *this;} /** *

The Amazon ECR repository prefix associated with the pull through cache * rule.

*/ inline CreatePullThroughCacheRuleResult& WithEcrRepositoryPrefix(const char* value) { SetEcrRepositoryPrefix(value); return *this;} /** *

The upstream registry URL associated with the pull through cache rule.

*/ inline const Aws::String& GetUpstreamRegistryUrl() const{ return m_upstreamRegistryUrl; } /** *

The upstream registry URL associated with the pull through cache rule.

*/ inline void SetUpstreamRegistryUrl(const Aws::String& value) { m_upstreamRegistryUrl = value; } /** *

The upstream registry URL associated with the pull through cache rule.

*/ inline void SetUpstreamRegistryUrl(Aws::String&& value) { m_upstreamRegistryUrl = std::move(value); } /** *

The upstream registry URL associated with the pull through cache rule.

*/ inline void SetUpstreamRegistryUrl(const char* value) { m_upstreamRegistryUrl.assign(value); } /** *

The upstream registry URL associated with the pull through cache rule.

*/ inline CreatePullThroughCacheRuleResult& WithUpstreamRegistryUrl(const Aws::String& value) { SetUpstreamRegistryUrl(value); return *this;} /** *

The upstream registry URL associated with the pull through cache rule.

*/ inline CreatePullThroughCacheRuleResult& WithUpstreamRegistryUrl(Aws::String&& value) { SetUpstreamRegistryUrl(std::move(value)); return *this;} /** *

The upstream registry URL associated with the pull through cache rule.

*/ inline CreatePullThroughCacheRuleResult& WithUpstreamRegistryUrl(const char* value) { SetUpstreamRegistryUrl(value); return *this;} /** *

The date and time, in JavaScript date format, when the pull through cache * rule was created.

*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *

The date and time, in JavaScript date format, when the pull through cache * rule was created.

*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAt = value; } /** *

The date and time, in JavaScript date format, when the pull through cache * rule was created.

*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAt = std::move(value); } /** *

The date and time, in JavaScript date format, when the pull through cache * rule was created.

*/ inline CreatePullThroughCacheRuleResult& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *

The date and time, in JavaScript date format, when the pull through cache * rule was created.

*/ inline CreatePullThroughCacheRuleResult& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} /** *

The registry ID associated with the request.

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

The registry ID associated with the request.

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

The registry ID associated with the request.

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

The registry ID associated with the request.

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

The registry ID associated with the request.

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

The registry ID associated with the request.

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

The registry ID associated with the request.

*/ inline CreatePullThroughCacheRuleResult& WithRegistryId(const char* value) { SetRegistryId(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; Aws::String m_requestId; }; } // namespace Model } // namespace ECR } // namespace Aws