/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Proton { namespace Model { /** *

Summary counts of each Proton resource type.

See Also:

AWS * API Reference

*/ class CountsSummary { public: AWS_PROTON_API CountsSummary(); AWS_PROTON_API CountsSummary(Aws::Utils::Json::JsonView jsonValue); AWS_PROTON_API CountsSummary& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The total number of components in the Amazon Web Services account.

The * semantics of the components field are different from the semantics * of results for other infrastructure-provisioning resources. That's because at * this time components don't have associated templates, therefore they don't have * the concept of staleness. The components object will only contain * total and failed members.

*/ inline const ResourceCountsSummary& GetComponents() const{ return m_components; } /** *

The total number of components in the Amazon Web Services account.

The * semantics of the components field are different from the semantics * of results for other infrastructure-provisioning resources. That's because at * this time components don't have associated templates, therefore they don't have * the concept of staleness. The components object will only contain * total and failed members.

*/ inline bool ComponentsHasBeenSet() const { return m_componentsHasBeenSet; } /** *

The total number of components in the Amazon Web Services account.

The * semantics of the components field are different from the semantics * of results for other infrastructure-provisioning resources. That's because at * this time components don't have associated templates, therefore they don't have * the concept of staleness. The components object will only contain * total and failed members.

*/ inline void SetComponents(const ResourceCountsSummary& value) { m_componentsHasBeenSet = true; m_components = value; } /** *

The total number of components in the Amazon Web Services account.

The * semantics of the components field are different from the semantics * of results for other infrastructure-provisioning resources. That's because at * this time components don't have associated templates, therefore they don't have * the concept of staleness. The components object will only contain * total and failed members.

*/ inline void SetComponents(ResourceCountsSummary&& value) { m_componentsHasBeenSet = true; m_components = std::move(value); } /** *

The total number of components in the Amazon Web Services account.

The * semantics of the components field are different from the semantics * of results for other infrastructure-provisioning resources. That's because at * this time components don't have associated templates, therefore they don't have * the concept of staleness. The components object will only contain * total and failed members.

*/ inline CountsSummary& WithComponents(const ResourceCountsSummary& value) { SetComponents(value); return *this;} /** *

The total number of components in the Amazon Web Services account.

The * semantics of the components field are different from the semantics * of results for other infrastructure-provisioning resources. That's because at * this time components don't have associated templates, therefore they don't have * the concept of staleness. The components object will only contain * total and failed members.

*/ inline CountsSummary& WithComponents(ResourceCountsSummary&& value) { SetComponents(std::move(value)); return *this;} /** *

The total number of environment templates in the Amazon Web Services account. * The environmentTemplates object will only contain * total members.

*/ inline const ResourceCountsSummary& GetEnvironmentTemplates() const{ return m_environmentTemplates; } /** *

The total number of environment templates in the Amazon Web Services account. * The environmentTemplates object will only contain * total members.

*/ inline bool EnvironmentTemplatesHasBeenSet() const { return m_environmentTemplatesHasBeenSet; } /** *

The total number of environment templates in the Amazon Web Services account. * The environmentTemplates object will only contain * total members.

*/ inline void SetEnvironmentTemplates(const ResourceCountsSummary& value) { m_environmentTemplatesHasBeenSet = true; m_environmentTemplates = value; } /** *

The total number of environment templates in the Amazon Web Services account. * The environmentTemplates object will only contain * total members.

*/ inline void SetEnvironmentTemplates(ResourceCountsSummary&& value) { m_environmentTemplatesHasBeenSet = true; m_environmentTemplates = std::move(value); } /** *

The total number of environment templates in the Amazon Web Services account. * The environmentTemplates object will only contain * total members.

*/ inline CountsSummary& WithEnvironmentTemplates(const ResourceCountsSummary& value) { SetEnvironmentTemplates(value); return *this;} /** *

The total number of environment templates in the Amazon Web Services account. * The environmentTemplates object will only contain * total members.

*/ inline CountsSummary& WithEnvironmentTemplates(ResourceCountsSummary&& value) { SetEnvironmentTemplates(std::move(value)); return *this;} /** *

The staleness counts for Proton environments in the Amazon Web Services * account. The environments object will only contain * total members.

*/ inline const ResourceCountsSummary& GetEnvironments() const{ return m_environments; } /** *

The staleness counts for Proton environments in the Amazon Web Services * account. The environments object will only contain * total members.

*/ inline bool EnvironmentsHasBeenSet() const { return m_environmentsHasBeenSet; } /** *

The staleness counts for Proton environments in the Amazon Web Services * account. The environments object will only contain * total members.

*/ inline void SetEnvironments(const ResourceCountsSummary& value) { m_environmentsHasBeenSet = true; m_environments = value; } /** *

The staleness counts for Proton environments in the Amazon Web Services * account. The environments object will only contain * total members.

*/ inline void SetEnvironments(ResourceCountsSummary&& value) { m_environmentsHasBeenSet = true; m_environments = std::move(value); } /** *

The staleness counts for Proton environments in the Amazon Web Services * account. The environments object will only contain * total members.

*/ inline CountsSummary& WithEnvironments(const ResourceCountsSummary& value) { SetEnvironments(value); return *this;} /** *

The staleness counts for Proton environments in the Amazon Web Services * account. The environments object will only contain * total members.

*/ inline CountsSummary& WithEnvironments(ResourceCountsSummary&& value) { SetEnvironments(std::move(value)); return *this;} /** *

The staleness counts for Proton pipelines in the Amazon Web Services * account.

*/ inline const ResourceCountsSummary& GetPipelines() const{ return m_pipelines; } /** *

The staleness counts for Proton pipelines in the Amazon Web Services * account.

*/ inline bool PipelinesHasBeenSet() const { return m_pipelinesHasBeenSet; } /** *

The staleness counts for Proton pipelines in the Amazon Web Services * account.

*/ inline void SetPipelines(const ResourceCountsSummary& value) { m_pipelinesHasBeenSet = true; m_pipelines = value; } /** *

The staleness counts for Proton pipelines in the Amazon Web Services * account.

*/ inline void SetPipelines(ResourceCountsSummary&& value) { m_pipelinesHasBeenSet = true; m_pipelines = std::move(value); } /** *

The staleness counts for Proton pipelines in the Amazon Web Services * account.

*/ inline CountsSummary& WithPipelines(const ResourceCountsSummary& value) { SetPipelines(value); return *this;} /** *

The staleness counts for Proton pipelines in the Amazon Web Services * account.

*/ inline CountsSummary& WithPipelines(ResourceCountsSummary&& value) { SetPipelines(std::move(value)); return *this;} /** *

The staleness counts for Proton service instances in the Amazon Web Services * account.

*/ inline const ResourceCountsSummary& GetServiceInstances() const{ return m_serviceInstances; } /** *

The staleness counts for Proton service instances in the Amazon Web Services * account.

*/ inline bool ServiceInstancesHasBeenSet() const { return m_serviceInstancesHasBeenSet; } /** *

The staleness counts for Proton service instances in the Amazon Web Services * account.

*/ inline void SetServiceInstances(const ResourceCountsSummary& value) { m_serviceInstancesHasBeenSet = true; m_serviceInstances = value; } /** *

The staleness counts for Proton service instances in the Amazon Web Services * account.

*/ inline void SetServiceInstances(ResourceCountsSummary&& value) { m_serviceInstancesHasBeenSet = true; m_serviceInstances = std::move(value); } /** *

The staleness counts for Proton service instances in the Amazon Web Services * account.

*/ inline CountsSummary& WithServiceInstances(const ResourceCountsSummary& value) { SetServiceInstances(value); return *this;} /** *

The staleness counts for Proton service instances in the Amazon Web Services * account.

*/ inline CountsSummary& WithServiceInstances(ResourceCountsSummary&& value) { SetServiceInstances(std::move(value)); return *this;} /** *

The total number of service templates in the Amazon Web Services account. The * serviceTemplates object will only contain total * members.

*/ inline const ResourceCountsSummary& GetServiceTemplates() const{ return m_serviceTemplates; } /** *

The total number of service templates in the Amazon Web Services account. The * serviceTemplates object will only contain total * members.

*/ inline bool ServiceTemplatesHasBeenSet() const { return m_serviceTemplatesHasBeenSet; } /** *

The total number of service templates in the Amazon Web Services account. The * serviceTemplates object will only contain total * members.

*/ inline void SetServiceTemplates(const ResourceCountsSummary& value) { m_serviceTemplatesHasBeenSet = true; m_serviceTemplates = value; } /** *

The total number of service templates in the Amazon Web Services account. The * serviceTemplates object will only contain total * members.

*/ inline void SetServiceTemplates(ResourceCountsSummary&& value) { m_serviceTemplatesHasBeenSet = true; m_serviceTemplates = std::move(value); } /** *

The total number of service templates in the Amazon Web Services account. The * serviceTemplates object will only contain total * members.

*/ inline CountsSummary& WithServiceTemplates(const ResourceCountsSummary& value) { SetServiceTemplates(value); return *this;} /** *

The total number of service templates in the Amazon Web Services account. The * serviceTemplates object will only contain total * members.

*/ inline CountsSummary& WithServiceTemplates(ResourceCountsSummary&& value) { SetServiceTemplates(std::move(value)); return *this;} /** *

The staleness counts for Proton services in the Amazon Web Services * account.

*/ inline const ResourceCountsSummary& GetServices() const{ return m_services; } /** *

The staleness counts for Proton services in the Amazon Web Services * account.

*/ inline bool ServicesHasBeenSet() const { return m_servicesHasBeenSet; } /** *

The staleness counts for Proton services in the Amazon Web Services * account.

*/ inline void SetServices(const ResourceCountsSummary& value) { m_servicesHasBeenSet = true; m_services = value; } /** *

The staleness counts for Proton services in the Amazon Web Services * account.

*/ inline void SetServices(ResourceCountsSummary&& value) { m_servicesHasBeenSet = true; m_services = std::move(value); } /** *

The staleness counts for Proton services in the Amazon Web Services * account.

*/ inline CountsSummary& WithServices(const ResourceCountsSummary& value) { SetServices(value); return *this;} /** *

The staleness counts for Proton services in the Amazon Web Services * account.

*/ inline CountsSummary& WithServices(ResourceCountsSummary&& value) { SetServices(std::move(value)); return *this;} private: ResourceCountsSummary m_components; bool m_componentsHasBeenSet = false; ResourceCountsSummary m_environmentTemplates; bool m_environmentTemplatesHasBeenSet = false; ResourceCountsSummary m_environments; bool m_environmentsHasBeenSet = false; ResourceCountsSummary m_pipelines; bool m_pipelinesHasBeenSet = false; ResourceCountsSummary m_serviceInstances; bool m_serviceInstancesHasBeenSet = false; ResourceCountsSummary m_serviceTemplates; bool m_serviceTemplatesHasBeenSet = false; ResourceCountsSummary m_services; bool m_servicesHasBeenSet = false; }; } // namespace Model } // namespace Proton } // namespace Aws