public static final class CreateSecurityGroupRequest.Builder extends Object
CreateSecurityGroupRequest.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
public final CreateSecurityGroupRequest.Builder from(CreateSecurityGroupRequest instance)
CreateSecurityGroupRequest instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.
Collection elements and entries will be added, not replaced.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final CreateSecurityGroupRequest.Builder name(String name)
name attribute.name - The value for namethis builder for use in a chained invocationpublic final CreateSecurityGroupRequest.Builder globallyEnabled(GloballyEnabled globallyEnabled)
globallyEnabled attribute.globallyEnabled - The value for globallyEnabled (can be null)this builder for use in a chained invocationpublic final CreateSecurityGroupRequest.Builder rule(Rule element)
rules list.element - A rules elementthis builder for use in a chained invocationpublic final CreateSecurityGroupRequest.Builder rules(Rule... elements)
rules list.elements - An array of rules elementsthis builder for use in a chained invocationpublic final CreateSecurityGroupRequest.Builder rules(Iterable<? extends Rule> elements)
rules list.elements - An iterable of rules elementsthis builder for use in a chained invocationpublic final CreateSecurityGroupRequest.Builder addAllRules(Iterable<? extends Rule> elements)
rules list.elements - An iterable of rules elementsthis builder for use in a chained invocationpublic final CreateSecurityGroupRequest.Builder relationships(Relationships relationships)
relationships attribute.relationships - The value for relationships (can be null)this builder for use in a chained invocationpublic CreateSecurityGroupRequest build()
CreateSecurityGroupRequest.IllegalStateException - if any required attributes are missingCopyright © 2024. All rights reserved.