Class InstancePolicyAllowedIPPolicyDataAttributes.Builder
- java.lang.Object
-
- com.ibm.cloud.ibm_key_protect_api.v2.model.InstancePolicyAllowedIPPolicyDataAttributes.Builder
-
- Enclosing class:
- InstancePolicyAllowedIPPolicyDataAttributes
public static class InstancePolicyAllowedIPPolicyDataAttributes.Builder extends Object
Builder.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstancePolicyAllowedIPPolicyDataAttributes.Builder
addAllowedIp(String allowedIp)
Adds a new element to allowedIp.InstancePolicyAllowedIPPolicyDataAttributes.Builder
allowedIp(List<String> allowedIp)
Set the allowedIp.InstancePolicyAllowedIPPolicyDataAttributes
build()
Builds a InstancePolicyAllowedIPPolicyDataAttributes.
-
-
-
Method Detail
-
build
public InstancePolicyAllowedIPPolicyDataAttributes build()
Builds a InstancePolicyAllowedIPPolicyDataAttributes.- Returns:
- the new InstancePolicyAllowedIPPolicyDataAttributes instance
-
addAllowedIp
public InstancePolicyAllowedIPPolicyDataAttributes.Builder addAllowedIp(String allowedIp)
Adds a new element to allowedIp.- Parameters:
allowedIp
- the new element to be added- Returns:
- the InstancePolicyAllowedIPPolicyDataAttributes builder
-
allowedIp
public InstancePolicyAllowedIPPolicyDataAttributes.Builder allowedIp(List<String> allowedIp)
Set the allowedIp. Existing allowedIp will be replaced.- Parameters:
allowedIp
- the allowedIp- Returns:
- the InstancePolicyAllowedIPPolicyDataAttributes builder
-
-