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

Describes an additional detail for a path analysis. For more information, see * Reachability * Analyzer additional detail codes.

See Also:

AWS * API Reference

*/ class AdditionalDetail { public: AWS_EC2_API AdditionalDetail(); AWS_EC2_API AdditionalDetail(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API AdditionalDetail& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The additional detail code.

*/ inline const Aws::String& GetAdditionalDetailType() const{ return m_additionalDetailType; } /** *

The additional detail code.

*/ inline bool AdditionalDetailTypeHasBeenSet() const { return m_additionalDetailTypeHasBeenSet; } /** *

The additional detail code.

*/ inline void SetAdditionalDetailType(const Aws::String& value) { m_additionalDetailTypeHasBeenSet = true; m_additionalDetailType = value; } /** *

The additional detail code.

*/ inline void SetAdditionalDetailType(Aws::String&& value) { m_additionalDetailTypeHasBeenSet = true; m_additionalDetailType = std::move(value); } /** *

The additional detail code.

*/ inline void SetAdditionalDetailType(const char* value) { m_additionalDetailTypeHasBeenSet = true; m_additionalDetailType.assign(value); } /** *

The additional detail code.

*/ inline AdditionalDetail& WithAdditionalDetailType(const Aws::String& value) { SetAdditionalDetailType(value); return *this;} /** *

The additional detail code.

*/ inline AdditionalDetail& WithAdditionalDetailType(Aws::String&& value) { SetAdditionalDetailType(std::move(value)); return *this;} /** *

The additional detail code.

*/ inline AdditionalDetail& WithAdditionalDetailType(const char* value) { SetAdditionalDetailType(value); return *this;} /** *

The path component.

*/ inline const AnalysisComponent& GetComponent() const{ return m_component; } /** *

The path component.

*/ inline bool ComponentHasBeenSet() const { return m_componentHasBeenSet; } /** *

The path component.

*/ inline void SetComponent(const AnalysisComponent& value) { m_componentHasBeenSet = true; m_component = value; } /** *

The path component.

*/ inline void SetComponent(AnalysisComponent&& value) { m_componentHasBeenSet = true; m_component = std::move(value); } /** *

The path component.

*/ inline AdditionalDetail& WithComponent(const AnalysisComponent& value) { SetComponent(value); return *this;} /** *

The path component.

*/ inline AdditionalDetail& WithComponent(AnalysisComponent&& value) { SetComponent(std::move(value)); return *this;} /** *

The VPC endpoint service.

*/ inline const AnalysisComponent& GetVpcEndpointService() const{ return m_vpcEndpointService; } /** *

The VPC endpoint service.

*/ inline bool VpcEndpointServiceHasBeenSet() const { return m_vpcEndpointServiceHasBeenSet; } /** *

The VPC endpoint service.

*/ inline void SetVpcEndpointService(const AnalysisComponent& value) { m_vpcEndpointServiceHasBeenSet = true; m_vpcEndpointService = value; } /** *

The VPC endpoint service.

*/ inline void SetVpcEndpointService(AnalysisComponent&& value) { m_vpcEndpointServiceHasBeenSet = true; m_vpcEndpointService = std::move(value); } /** *

The VPC endpoint service.

*/ inline AdditionalDetail& WithVpcEndpointService(const AnalysisComponent& value) { SetVpcEndpointService(value); return *this;} /** *

The VPC endpoint service.

*/ inline AdditionalDetail& WithVpcEndpointService(AnalysisComponent&& value) { SetVpcEndpointService(std::move(value)); return *this;} /** *

The rule options.

*/ inline const Aws::Vector& GetRuleOptions() const{ return m_ruleOptions; } /** *

The rule options.

*/ inline bool RuleOptionsHasBeenSet() const { return m_ruleOptionsHasBeenSet; } /** *

The rule options.

*/ inline void SetRuleOptions(const Aws::Vector& value) { m_ruleOptionsHasBeenSet = true; m_ruleOptions = value; } /** *

The rule options.

*/ inline void SetRuleOptions(Aws::Vector&& value) { m_ruleOptionsHasBeenSet = true; m_ruleOptions = std::move(value); } /** *

The rule options.

*/ inline AdditionalDetail& WithRuleOptions(const Aws::Vector& value) { SetRuleOptions(value); return *this;} /** *

The rule options.

*/ inline AdditionalDetail& WithRuleOptions(Aws::Vector&& value) { SetRuleOptions(std::move(value)); return *this;} /** *

The rule options.

*/ inline AdditionalDetail& AddRuleOptions(const RuleOption& value) { m_ruleOptionsHasBeenSet = true; m_ruleOptions.push_back(value); return *this; } /** *

The rule options.

*/ inline AdditionalDetail& AddRuleOptions(RuleOption&& value) { m_ruleOptionsHasBeenSet = true; m_ruleOptions.push_back(std::move(value)); return *this; } /** *

The rule group type.

*/ inline const Aws::Vector& GetRuleGroupTypePairs() const{ return m_ruleGroupTypePairs; } /** *

The rule group type.

*/ inline bool RuleGroupTypePairsHasBeenSet() const { return m_ruleGroupTypePairsHasBeenSet; } /** *

The rule group type.

*/ inline void SetRuleGroupTypePairs(const Aws::Vector& value) { m_ruleGroupTypePairsHasBeenSet = true; m_ruleGroupTypePairs = value; } /** *

The rule group type.

*/ inline void SetRuleGroupTypePairs(Aws::Vector&& value) { m_ruleGroupTypePairsHasBeenSet = true; m_ruleGroupTypePairs = std::move(value); } /** *

The rule group type.

*/ inline AdditionalDetail& WithRuleGroupTypePairs(const Aws::Vector& value) { SetRuleGroupTypePairs(value); return *this;} /** *

The rule group type.

*/ inline AdditionalDetail& WithRuleGroupTypePairs(Aws::Vector&& value) { SetRuleGroupTypePairs(std::move(value)); return *this;} /** *

The rule group type.

*/ inline AdditionalDetail& AddRuleGroupTypePairs(const RuleGroupTypePair& value) { m_ruleGroupTypePairsHasBeenSet = true; m_ruleGroupTypePairs.push_back(value); return *this; } /** *

The rule group type.

*/ inline AdditionalDetail& AddRuleGroupTypePairs(RuleGroupTypePair&& value) { m_ruleGroupTypePairsHasBeenSet = true; m_ruleGroupTypePairs.push_back(std::move(value)); return *this; } /** *

The rule options.

*/ inline const Aws::Vector& GetRuleGroupRuleOptionsPairs() const{ return m_ruleGroupRuleOptionsPairs; } /** *

The rule options.

*/ inline bool RuleGroupRuleOptionsPairsHasBeenSet() const { return m_ruleGroupRuleOptionsPairsHasBeenSet; } /** *

The rule options.

*/ inline void SetRuleGroupRuleOptionsPairs(const Aws::Vector& value) { m_ruleGroupRuleOptionsPairsHasBeenSet = true; m_ruleGroupRuleOptionsPairs = value; } /** *

The rule options.

*/ inline void SetRuleGroupRuleOptionsPairs(Aws::Vector&& value) { m_ruleGroupRuleOptionsPairsHasBeenSet = true; m_ruleGroupRuleOptionsPairs = std::move(value); } /** *

The rule options.

*/ inline AdditionalDetail& WithRuleGroupRuleOptionsPairs(const Aws::Vector& value) { SetRuleGroupRuleOptionsPairs(value); return *this;} /** *

The rule options.

*/ inline AdditionalDetail& WithRuleGroupRuleOptionsPairs(Aws::Vector&& value) { SetRuleGroupRuleOptionsPairs(std::move(value)); return *this;} /** *

The rule options.

*/ inline AdditionalDetail& AddRuleGroupRuleOptionsPairs(const RuleGroupRuleOptionsPair& value) { m_ruleGroupRuleOptionsPairsHasBeenSet = true; m_ruleGroupRuleOptionsPairs.push_back(value); return *this; } /** *

The rule options.

*/ inline AdditionalDetail& AddRuleGroupRuleOptionsPairs(RuleGroupRuleOptionsPair&& value) { m_ruleGroupRuleOptionsPairsHasBeenSet = true; m_ruleGroupRuleOptionsPairs.push_back(std::move(value)); return *this; } /** *

The name of the VPC endpoint service.

*/ inline const Aws::String& GetServiceName() const{ return m_serviceName; } /** *

The name of the VPC endpoint service.

*/ inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; } /** *

The name of the VPC endpoint service.

*/ inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; } /** *

The name of the VPC endpoint service.

*/ inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); } /** *

The name of the VPC endpoint service.

*/ inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); } /** *

The name of the VPC endpoint service.

*/ inline AdditionalDetail& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;} /** *

The name of the VPC endpoint service.

*/ inline AdditionalDetail& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;} /** *

The name of the VPC endpoint service.

*/ inline AdditionalDetail& WithServiceName(const char* value) { SetServiceName(value); return *this;} /** *

The load balancers.

*/ inline const Aws::Vector& GetLoadBalancers() const{ return m_loadBalancers; } /** *

The load balancers.

*/ inline bool LoadBalancersHasBeenSet() const { return m_loadBalancersHasBeenSet; } /** *

The load balancers.

*/ inline void SetLoadBalancers(const Aws::Vector& value) { m_loadBalancersHasBeenSet = true; m_loadBalancers = value; } /** *

The load balancers.

*/ inline void SetLoadBalancers(Aws::Vector&& value) { m_loadBalancersHasBeenSet = true; m_loadBalancers = std::move(value); } /** *

The load balancers.

*/ inline AdditionalDetail& WithLoadBalancers(const Aws::Vector& value) { SetLoadBalancers(value); return *this;} /** *

The load balancers.

*/ inline AdditionalDetail& WithLoadBalancers(Aws::Vector&& value) { SetLoadBalancers(std::move(value)); return *this;} /** *

The load balancers.

*/ inline AdditionalDetail& AddLoadBalancers(const AnalysisComponent& value) { m_loadBalancersHasBeenSet = true; m_loadBalancers.push_back(value); return *this; } /** *

The load balancers.

*/ inline AdditionalDetail& AddLoadBalancers(AnalysisComponent&& value) { m_loadBalancersHasBeenSet = true; m_loadBalancers.push_back(std::move(value)); return *this; } private: Aws::String m_additionalDetailType; bool m_additionalDetailTypeHasBeenSet = false; AnalysisComponent m_component; bool m_componentHasBeenSet = false; AnalysisComponent m_vpcEndpointService; bool m_vpcEndpointServiceHasBeenSet = false; Aws::Vector m_ruleOptions; bool m_ruleOptionsHasBeenSet = false; Aws::Vector m_ruleGroupTypePairs; bool m_ruleGroupTypePairsHasBeenSet = false; Aws::Vector m_ruleGroupRuleOptionsPairs; bool m_ruleGroupRuleOptionsPairsHasBeenSet = false; Aws::String m_serviceName; bool m_serviceNameHasBeenSet = false; Aws::Vector m_loadBalancers; bool m_loadBalancersHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws