@Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getSequenceNumber() != null)
            sb.append("SequenceNumber: ").append(getSequenceNumber()).append(",");
        if (getAclRule() != null)
            sb.append("AclRule: ").append(getAclRule()).append(",");
        if (getAttachedTo() != null)
            sb.append("AttachedTo: ").append(getAttachedTo()).append(",");
        if (getComponent() != null)
            sb.append("Component: ").append(getComponent()).append(",");
        if (getDestinationVpc() != null)
            sb.append("DestinationVpc: ").append(getDestinationVpc()).append(",");
        if (getOutboundHeader() != null)
            sb.append("OutboundHeader: ").append(getOutboundHeader()).append(",");
        if (getInboundHeader() != null)
            sb.append("InboundHeader: ").append(getInboundHeader()).append(",");
        if (getRouteTableRoute() != null)
            sb.append("RouteTableRoute: ").append(getRouteTableRoute()).append(",");
        if (getSecurityGroupRule() != null)
            sb.append("SecurityGroupRule: ").append(getSecurityGroupRule()).append(",");
        if (getSourceVpc() != null)
            sb.append("SourceVpc: ").append(getSourceVpc()).append(",");
        if (getSubnet() != null)
            sb.append("Subnet: ").append(getSubnet()).append(",");
        if (getVpc() != null)
            sb.append("Vpc: ").append(getVpc()).append(",");
        if (getAdditionalDetails() != null)
            sb.append("AdditionalDetails: ").append(getAdditionalDetails()).append(",");
        if (getTransitGateway() != null)
            sb.append("TransitGateway: ").append(getTransitGateway()).append(",");
        if (getTransitGatewayRouteTableRoute() != null)
            sb.append("TransitGatewayRouteTableRoute: ").append(getTransitGatewayRouteTableRoute()).append(",");
        if (getExplanations() != null)
            sb.append("Explanations: ").append(getExplanations()).append(",");
        if (getElasticLoadBalancerListener() != null)
            sb.append("ElasticLoadBalancerListener: ").append(getElasticLoadBalancerListener()).append(",");
        if (getFirewallStatelessRule() != null)
            sb.append("FirewallStatelessRule: ").append(getFirewallStatelessRule()).append(",");
        if (getFirewallStatefulRule() != null)
            sb.append("FirewallStatefulRule: ").append(getFirewallStatefulRule()).append(",");
        if (getServiceName() != null)
            sb.append("ServiceName: ").append(getServiceName());
        sb.append("}");
        return sb.toString();
    }
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
redacted from this string using a placeholder value.

@return A string representation of this object.

@see java.lang.Object#toString()
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/PathComponent.java