Class GetCoreNetworkPolicyDocumentSegmentAction.Builder

    • Method Detail

      • action

        public GetCoreNetworkPolicyDocumentSegmentAction.Builder action​(java.lang.String action)
        Parameters:
        action - Action to take for the chosen segment. Valid values: `create-route`, `share`, `send-via`, `send-to`, and `associate-routing-policy` (available in policy version `2025.11` and later).
        Returns:
        builder
      • destinationCidrBlocks

        public GetCoreNetworkPolicyDocumentSegmentAction.Builder destinationCidrBlocks​(@Nullable
                                                                                       java.util.List<java.lang.String> destinationCidrBlocks)
        Parameters:
        destinationCidrBlocks - List of strings containing CIDRs. You can define the IPv4 and IPv6 CIDR notation for each AWS Region. For example, `10.1.0.0/16` or `2001:db8::/56`. This is an array of CIDR notation strings.
        Returns:
        builder
      • destinationCidrBlocks

        public GetCoreNetworkPolicyDocumentSegmentAction.Builder destinationCidrBlocks​(java.lang.String... destinationCidrBlocks)
        Parameters:
        destinationCidrBlocks - List of strings containing CIDRs. You can define the IPv4 and IPv6 CIDR notation for each AWS Region. For example, `10.1.0.0/16` or `2001:db8::/56`. This is an array of CIDR notation strings.
        Returns:
        builder
      • destinations

        public GetCoreNetworkPolicyDocumentSegmentAction.Builder destinations​(@Nullable
                                                                              java.util.List<java.lang.String> destinations)
        Parameters:
        destinations - A list of strings. Valid values include `["blackhole"]` or a list of attachment IDs.
        Returns:
        builder
      • destinations

        public GetCoreNetworkPolicyDocumentSegmentAction.Builder destinations​(java.lang.String... destinations)
        Parameters:
        destinations - A list of strings. Valid values include `["blackhole"]` or a list of attachment IDs.
        Returns:
        builder
      • mode

        public GetCoreNetworkPolicyDocumentSegmentAction.Builder mode​(@Nullable
                                                                      java.lang.String mode)
        Parameters:
        mode - String. When `action` is `share`, a `mode` value of `attachment-route` places the attachment and return routes in each of the `shareWith` segments. When `action` is `send-via`, indicates the mode used for packets. Valid values: `attachment-route`, `single-hop`, `dual-hop`.
        Returns:
        builder
      • routingPolicyNames

        public GetCoreNetworkPolicyDocumentSegmentAction.Builder routingPolicyNames​(@Nullable
                                                                                    java.util.List<java.lang.String> routingPolicyNames)
        Parameters:
        routingPolicyNames - A list of routing policy names to apply to segment sharing. The routing policies control how routes are propagated between the shared segments. Only applicable when `action` is `share`. Available in policy version `2025.11` and later.
        Returns:
        builder
      • routingPolicyNames

        public GetCoreNetworkPolicyDocumentSegmentAction.Builder routingPolicyNames​(java.lang.String... routingPolicyNames)
        Parameters:
        routingPolicyNames - A list of routing policy names to apply to segment sharing. The routing policies control how routes are propagated between the shared segments. Only applicable when `action` is `share`. Available in policy version `2025.11` and later.
        Returns:
        builder
      • shareWithExcepts

        public GetCoreNetworkPolicyDocumentSegmentAction.Builder shareWithExcepts​(@Nullable
                                                                                  java.util.List<java.lang.String> shareWithExcepts)
        Parameters:
        shareWithExcepts - A set subtraction of segments to not share with.
        Returns:
        builder
      • shareWiths

        public GetCoreNetworkPolicyDocumentSegmentAction.Builder shareWiths​(@Nullable
                                                                            java.util.List<java.lang.String> shareWiths)
        Parameters:
        shareWiths - A list of strings to share with. Must be a substring is all segments. Valid values include: `["*"]` or `["<segment-names>"]`.
        Returns:
        builder
      • shareWiths

        public GetCoreNetworkPolicyDocumentSegmentAction.Builder shareWiths​(java.lang.String... shareWiths)
        Parameters:
        shareWiths - A list of strings to share with. Must be a substring is all segments. Valid values include: `["*"]` or `["<segment-names>"]`.
        Returns:
        builder