/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Details about a network path component that occurs before or after the
* current component.See Also:
AWS
* API Reference
The protocol used for the component.
*/ inline const Aws::String& GetProtocol() const{ return m_protocol; } /** *The protocol used for the component.
*/ inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; } /** *The protocol used for the component.
*/ inline void SetProtocol(const Aws::String& value) { m_protocolHasBeenSet = true; m_protocol = value; } /** *The protocol used for the component.
*/ inline void SetProtocol(Aws::String&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); } /** *The protocol used for the component.
*/ inline void SetProtocol(const char* value) { m_protocolHasBeenSet = true; m_protocol.assign(value); } /** *The protocol used for the component.
*/ inline NetworkHeader& WithProtocol(const Aws::String& value) { SetProtocol(value); return *this;} /** *The protocol used for the component.
*/ inline NetworkHeader& WithProtocol(Aws::String&& value) { SetProtocol(std::move(value)); return *this;} /** *The protocol used for the component.
*/ inline NetworkHeader& WithProtocol(const char* value) { SetProtocol(value); return *this;} /** *Information about the destination of the component.
*/ inline const NetworkPathComponentDetails& GetDestination() const{ return m_destination; } /** *Information about the destination of the component.
*/ inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; } /** *Information about the destination of the component.
*/ inline void SetDestination(const NetworkPathComponentDetails& value) { m_destinationHasBeenSet = true; m_destination = value; } /** *Information about the destination of the component.
*/ inline void SetDestination(NetworkPathComponentDetails&& value) { m_destinationHasBeenSet = true; m_destination = std::move(value); } /** *Information about the destination of the component.
*/ inline NetworkHeader& WithDestination(const NetworkPathComponentDetails& value) { SetDestination(value); return *this;} /** *Information about the destination of the component.
*/ inline NetworkHeader& WithDestination(NetworkPathComponentDetails&& value) { SetDestination(std::move(value)); return *this;} /** *Information about the origin of the component.
*/ inline const NetworkPathComponentDetails& GetSource() const{ return m_source; } /** *Information about the origin of the component.
*/ inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; } /** *Information about the origin of the component.
*/ inline void SetSource(const NetworkPathComponentDetails& value) { m_sourceHasBeenSet = true; m_source = value; } /** *Information about the origin of the component.
*/ inline void SetSource(NetworkPathComponentDetails&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); } /** *Information about the origin of the component.
*/ inline NetworkHeader& WithSource(const NetworkPathComponentDetails& value) { SetSource(value); return *this;} /** *Information about the origin of the component.
*/ inline NetworkHeader& WithSource(NetworkPathComponentDetails&& value) { SetSource(std::move(value)); return *this;} private: Aws::String m_protocol; bool m_protocolHasBeenSet = false; NetworkPathComponentDetails m_destination; bool m_destinationHasBeenSet = false; NetworkPathComponentDetails m_source; bool m_sourceHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws