/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains information about the DNS_REQUEST action described in this
* finding.See Also:
AWS
* API Reference
The domain information for the DNS query.
*/ inline const Aws::String& GetDomain() const{ return m_domain; } /** *The domain information for the DNS query.
*/ inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; } /** *The domain information for the DNS query.
*/ inline void SetDomain(const Aws::String& value) { m_domainHasBeenSet = true; m_domain = value; } /** *The domain information for the DNS query.
*/ inline void SetDomain(Aws::String&& value) { m_domainHasBeenSet = true; m_domain = std::move(value); } /** *The domain information for the DNS query.
*/ inline void SetDomain(const char* value) { m_domainHasBeenSet = true; m_domain.assign(value); } /** *The domain information for the DNS query.
*/ inline DnsRequestAction& WithDomain(const Aws::String& value) { SetDomain(value); return *this;} /** *The domain information for the DNS query.
*/ inline DnsRequestAction& WithDomain(Aws::String&& value) { SetDomain(std::move(value)); return *this;} /** *The domain information for the DNS query.
*/ inline DnsRequestAction& WithDomain(const char* value) { SetDomain(value); return *this;} /** *The network connection protocol observed in the activity that prompted * GuardDuty to generate the finding.
*/ inline const Aws::String& GetProtocol() const{ return m_protocol; } /** *The network connection protocol observed in the activity that prompted * GuardDuty to generate the finding.
*/ inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; } /** *The network connection protocol observed in the activity that prompted * GuardDuty to generate the finding.
*/ inline void SetProtocol(const Aws::String& value) { m_protocolHasBeenSet = true; m_protocol = value; } /** *The network connection protocol observed in the activity that prompted * GuardDuty to generate the finding.
*/ inline void SetProtocol(Aws::String&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); } /** *The network connection protocol observed in the activity that prompted * GuardDuty to generate the finding.
*/ inline void SetProtocol(const char* value) { m_protocolHasBeenSet = true; m_protocol.assign(value); } /** *The network connection protocol observed in the activity that prompted * GuardDuty to generate the finding.
*/ inline DnsRequestAction& WithProtocol(const Aws::String& value) { SetProtocol(value); return *this;} /** *The network connection protocol observed in the activity that prompted * GuardDuty to generate the finding.
*/ inline DnsRequestAction& WithProtocol(Aws::String&& value) { SetProtocol(std::move(value)); return *this;} /** *The network connection protocol observed in the activity that prompted * GuardDuty to generate the finding.
*/ inline DnsRequestAction& WithProtocol(const char* value) { SetProtocol(value); return *this;} /** *Indicates whether the targeted port is blocked.
*/ inline bool GetBlocked() const{ return m_blocked; } /** *Indicates whether the targeted port is blocked.
*/ inline bool BlockedHasBeenSet() const { return m_blockedHasBeenSet; } /** *Indicates whether the targeted port is blocked.
*/ inline void SetBlocked(bool value) { m_blockedHasBeenSet = true; m_blocked = value; } /** *Indicates whether the targeted port is blocked.
*/ inline DnsRequestAction& WithBlocked(bool value) { SetBlocked(value); return *this;} private: Aws::String m_domain; bool m_domainHasBeenSet = false; Aws::String m_protocol; bool m_protocolHasBeenSet = false; bool m_blocked; bool m_blockedHasBeenSet = false; }; } // namespace Model } // namespace GuardDuty } // namespace Aws