/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace DirectoryService { namespace Model { /** */ class AddIpRoutesRequest : public DirectoryServiceRequest { public: AWS_DIRECTORYSERVICE_API AddIpRoutesRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "AddIpRoutes"; } AWS_DIRECTORYSERVICE_API Aws::String SerializePayload() const override; AWS_DIRECTORYSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

Identifier (ID) of the directory to which to add the address block.

*/ inline const Aws::String& GetDirectoryId() const{ return m_directoryId; } /** *

Identifier (ID) of the directory to which to add the address block.

*/ inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; } /** *

Identifier (ID) of the directory to which to add the address block.

*/ inline void SetDirectoryId(const Aws::String& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; } /** *

Identifier (ID) of the directory to which to add the address block.

*/ inline void SetDirectoryId(Aws::String&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::move(value); } /** *

Identifier (ID) of the directory to which to add the address block.

*/ inline void SetDirectoryId(const char* value) { m_directoryIdHasBeenSet = true; m_directoryId.assign(value); } /** *

Identifier (ID) of the directory to which to add the address block.

*/ inline AddIpRoutesRequest& WithDirectoryId(const Aws::String& value) { SetDirectoryId(value); return *this;} /** *

Identifier (ID) of the directory to which to add the address block.

*/ inline AddIpRoutesRequest& WithDirectoryId(Aws::String&& value) { SetDirectoryId(std::move(value)); return *this;} /** *

Identifier (ID) of the directory to which to add the address block.

*/ inline AddIpRoutesRequest& WithDirectoryId(const char* value) { SetDirectoryId(value); return *this;} /** *

IP address blocks, using CIDR format, of the traffic to route. This is often * the IP address block of the DNS server used for your self-managed domain.

*/ inline const Aws::Vector& GetIpRoutes() const{ return m_ipRoutes; } /** *

IP address blocks, using CIDR format, of the traffic to route. This is often * the IP address block of the DNS server used for your self-managed domain.

*/ inline bool IpRoutesHasBeenSet() const { return m_ipRoutesHasBeenSet; } /** *

IP address blocks, using CIDR format, of the traffic to route. This is often * the IP address block of the DNS server used for your self-managed domain.

*/ inline void SetIpRoutes(const Aws::Vector& value) { m_ipRoutesHasBeenSet = true; m_ipRoutes = value; } /** *

IP address blocks, using CIDR format, of the traffic to route. This is often * the IP address block of the DNS server used for your self-managed domain.

*/ inline void SetIpRoutes(Aws::Vector&& value) { m_ipRoutesHasBeenSet = true; m_ipRoutes = std::move(value); } /** *

IP address blocks, using CIDR format, of the traffic to route. This is often * the IP address block of the DNS server used for your self-managed domain.

*/ inline AddIpRoutesRequest& WithIpRoutes(const Aws::Vector& value) { SetIpRoutes(value); return *this;} /** *

IP address blocks, using CIDR format, of the traffic to route. This is often * the IP address block of the DNS server used for your self-managed domain.

*/ inline AddIpRoutesRequest& WithIpRoutes(Aws::Vector&& value) { SetIpRoutes(std::move(value)); return *this;} /** *

IP address blocks, using CIDR format, of the traffic to route. This is often * the IP address block of the DNS server used for your self-managed domain.

*/ inline AddIpRoutesRequest& AddIpRoutes(const IpRoute& value) { m_ipRoutesHasBeenSet = true; m_ipRoutes.push_back(value); return *this; } /** *

IP address blocks, using CIDR format, of the traffic to route. This is often * the IP address block of the DNS server used for your self-managed domain.

*/ inline AddIpRoutesRequest& AddIpRoutes(IpRoute&& value) { m_ipRoutesHasBeenSet = true; m_ipRoutes.push_back(std::move(value)); return *this; } /** *

If set to true, updates the inbound and outbound rules of the security group * that has the description: "Amazon Web Services created security group for * directory ID directory controllers." Following are the new rules:

*

Inbound:

  • Type: Custom UDP Rule, Protocol: UDP, Range: 88, * Source: 0.0.0.0/0

  • Type: Custom UDP Rule, Protocol: UDP, Range: * 123, Source: 0.0.0.0/0

  • Type: Custom UDP Rule, Protocol: UDP, * Range: 138, Source: 0.0.0.0/0

  • Type: Custom UDP Rule, Protocol: * UDP, Range: 389, Source: 0.0.0.0/0

  • Type: Custom UDP Rule, * Protocol: UDP, Range: 464, Source: 0.0.0.0/0

  • Type: Custom UDP * Rule, Protocol: UDP, Range: 445, Source: 0.0.0.0/0

  • Type: * Custom TCP Rule, Protocol: TCP, Range: 88, Source: 0.0.0.0/0

  • *

    Type: Custom TCP Rule, Protocol: TCP, Range: 135, Source: 0.0.0.0/0

  • *
  • Type: Custom TCP Rule, Protocol: TCP, Range: 445, Source: 0.0.0.0/0

    *
  • Type: Custom TCP Rule, Protocol: TCP, Range: 464, Source: * 0.0.0.0/0

  • Type: Custom TCP Rule, Protocol: TCP, Range: 636, * Source: 0.0.0.0/0

  • Type: Custom TCP Rule, Protocol: TCP, Range: * 1024-65535, Source: 0.0.0.0/0

  • Type: Custom TCP Rule, Protocol: * TCP, Range: 3268-33269, Source: 0.0.0.0/0

  • Type: DNS (UDP), * Protocol: UDP, Range: 53, Source: 0.0.0.0/0

  • Type: DNS (TCP), * Protocol: TCP, Range: 53, Source: 0.0.0.0/0

  • Type: LDAP, * Protocol: TCP, Range: 389, Source: 0.0.0.0/0

  • Type: All ICMP, * Protocol: All, Range: N/A, Source: 0.0.0.0/0

*

Outbound:

  • Type: All traffic, Protocol: All, Range: All, * Destination: 0.0.0.0/0

These security rules impact an * internal network interface that is not exposed publicly.

*/ inline bool GetUpdateSecurityGroupForDirectoryControllers() const{ return m_updateSecurityGroupForDirectoryControllers; } /** *

If set to true, updates the inbound and outbound rules of the security group * that has the description: "Amazon Web Services created security group for * directory ID directory controllers." Following are the new rules:

*

Inbound:

  • Type: Custom UDP Rule, Protocol: UDP, Range: 88, * Source: 0.0.0.0/0

  • Type: Custom UDP Rule, Protocol: UDP, Range: * 123, Source: 0.0.0.0/0

  • Type: Custom UDP Rule, Protocol: UDP, * Range: 138, Source: 0.0.0.0/0

  • Type: Custom UDP Rule, Protocol: * UDP, Range: 389, Source: 0.0.0.0/0

  • Type: Custom UDP Rule, * Protocol: UDP, Range: 464, Source: 0.0.0.0/0

  • Type: Custom UDP * Rule, Protocol: UDP, Range: 445, Source: 0.0.0.0/0

  • Type: * Custom TCP Rule, Protocol: TCP, Range: 88, Source: 0.0.0.0/0

  • *

    Type: Custom TCP Rule, Protocol: TCP, Range: 135, Source: 0.0.0.0/0

  • *
  • Type: Custom TCP Rule, Protocol: TCP, Range: 445, Source: 0.0.0.0/0

    *
  • Type: Custom TCP Rule, Protocol: TCP, Range: 464, Source: * 0.0.0.0/0

  • Type: Custom TCP Rule, Protocol: TCP, Range: 636, * Source: 0.0.0.0/0

  • Type: Custom TCP Rule, Protocol: TCP, Range: * 1024-65535, Source: 0.0.0.0/0

  • Type: Custom TCP Rule, Protocol: * TCP, Range: 3268-33269, Source: 0.0.0.0/0

  • Type: DNS (UDP), * Protocol: UDP, Range: 53, Source: 0.0.0.0/0

  • Type: DNS (TCP), * Protocol: TCP, Range: 53, Source: 0.0.0.0/0

  • Type: LDAP, * Protocol: TCP, Range: 389, Source: 0.0.0.0/0

  • Type: All ICMP, * Protocol: All, Range: N/A, Source: 0.0.0.0/0

*

Outbound:

  • Type: All traffic, Protocol: All, Range: All, * Destination: 0.0.0.0/0

These security rules impact an * internal network interface that is not exposed publicly.

*/ inline bool UpdateSecurityGroupForDirectoryControllersHasBeenSet() const { return m_updateSecurityGroupForDirectoryControllersHasBeenSet; } /** *

If set to true, updates the inbound and outbound rules of the security group * that has the description: "Amazon Web Services created security group for * directory ID directory controllers." Following are the new rules:

*

Inbound:

  • Type: Custom UDP Rule, Protocol: UDP, Range: 88, * Source: 0.0.0.0/0

  • Type: Custom UDP Rule, Protocol: UDP, Range: * 123, Source: 0.0.0.0/0

  • Type: Custom UDP Rule, Protocol: UDP, * Range: 138, Source: 0.0.0.0/0

  • Type: Custom UDP Rule, Protocol: * UDP, Range: 389, Source: 0.0.0.0/0

  • Type: Custom UDP Rule, * Protocol: UDP, Range: 464, Source: 0.0.0.0/0

  • Type: Custom UDP * Rule, Protocol: UDP, Range: 445, Source: 0.0.0.0/0

  • Type: * Custom TCP Rule, Protocol: TCP, Range: 88, Source: 0.0.0.0/0

  • *

    Type: Custom TCP Rule, Protocol: TCP, Range: 135, Source: 0.0.0.0/0

  • *
  • Type: Custom TCP Rule, Protocol: TCP, Range: 445, Source: 0.0.0.0/0

    *
  • Type: Custom TCP Rule, Protocol: TCP, Range: 464, Source: * 0.0.0.0/0

  • Type: Custom TCP Rule, Protocol: TCP, Range: 636, * Source: 0.0.0.0/0

  • Type: Custom TCP Rule, Protocol: TCP, Range: * 1024-65535, Source: 0.0.0.0/0

  • Type: Custom TCP Rule, Protocol: * TCP, Range: 3268-33269, Source: 0.0.0.0/0

  • Type: DNS (UDP), * Protocol: UDP, Range: 53, Source: 0.0.0.0/0

  • Type: DNS (TCP), * Protocol: TCP, Range: 53, Source: 0.0.0.0/0

  • Type: LDAP, * Protocol: TCP, Range: 389, Source: 0.0.0.0/0

  • Type: All ICMP, * Protocol: All, Range: N/A, Source: 0.0.0.0/0

*

Outbound:

  • Type: All traffic, Protocol: All, Range: All, * Destination: 0.0.0.0/0

These security rules impact an * internal network interface that is not exposed publicly.

*/ inline void SetUpdateSecurityGroupForDirectoryControllers(bool value) { m_updateSecurityGroupForDirectoryControllersHasBeenSet = true; m_updateSecurityGroupForDirectoryControllers = value; } /** *

If set to true, updates the inbound and outbound rules of the security group * that has the description: "Amazon Web Services created security group for * directory ID directory controllers." Following are the new rules:

*

Inbound:

  • Type: Custom UDP Rule, Protocol: UDP, Range: 88, * Source: 0.0.0.0/0

  • Type: Custom UDP Rule, Protocol: UDP, Range: * 123, Source: 0.0.0.0/0

  • Type: Custom UDP Rule, Protocol: UDP, * Range: 138, Source: 0.0.0.0/0

  • Type: Custom UDP Rule, Protocol: * UDP, Range: 389, Source: 0.0.0.0/0

  • Type: Custom UDP Rule, * Protocol: UDP, Range: 464, Source: 0.0.0.0/0

  • Type: Custom UDP * Rule, Protocol: UDP, Range: 445, Source: 0.0.0.0/0

  • Type: * Custom TCP Rule, Protocol: TCP, Range: 88, Source: 0.0.0.0/0

  • *

    Type: Custom TCP Rule, Protocol: TCP, Range: 135, Source: 0.0.0.0/0

  • *
  • Type: Custom TCP Rule, Protocol: TCP, Range: 445, Source: 0.0.0.0/0

    *
  • Type: Custom TCP Rule, Protocol: TCP, Range: 464, Source: * 0.0.0.0/0

  • Type: Custom TCP Rule, Protocol: TCP, Range: 636, * Source: 0.0.0.0/0

  • Type: Custom TCP Rule, Protocol: TCP, Range: * 1024-65535, Source: 0.0.0.0/0

  • Type: Custom TCP Rule, Protocol: * TCP, Range: 3268-33269, Source: 0.0.0.0/0

  • Type: DNS (UDP), * Protocol: UDP, Range: 53, Source: 0.0.0.0/0

  • Type: DNS (TCP), * Protocol: TCP, Range: 53, Source: 0.0.0.0/0

  • Type: LDAP, * Protocol: TCP, Range: 389, Source: 0.0.0.0/0

  • Type: All ICMP, * Protocol: All, Range: N/A, Source: 0.0.0.0/0

*

Outbound:

  • Type: All traffic, Protocol: All, Range: All, * Destination: 0.0.0.0/0

These security rules impact an * internal network interface that is not exposed publicly.

*/ inline AddIpRoutesRequest& WithUpdateSecurityGroupForDirectoryControllers(bool value) { SetUpdateSecurityGroupForDirectoryControllers(value); return *this;} private: Aws::String m_directoryId; bool m_directoryIdHasBeenSet = false; Aws::Vector m_ipRoutes; bool m_ipRoutesHasBeenSet = false; bool m_updateSecurityGroupForDirectoryControllers; bool m_updateSecurityGroupForDirectoryControllersHasBeenSet = false; }; } // namespace Model } // namespace DirectoryService } // namespace Aws