public static final class UpdateSecurityGroupRequest.Builder extends Object
UpdateSecurityGroupRequest.
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 UpdateSecurityGroupRequest.Builder from(UpdateSecurityGroupRequest instance)
UpdateSecurityGroupRequest 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 UpdateSecurityGroupRequest.Builder securityGroupId(String securityGroupId)
securityGroupId attribute.securityGroupId - The value for securityGroupIdthis builder for use in a chained invocationpublic final UpdateSecurityGroupRequest.Builder name(String name)
name attribute.name - The value for namethis builder for use in a chained invocationpublic final UpdateSecurityGroupRequest.Builder globallyEnabled(GloballyEnabled globallyEnabled)
globallyEnabled attribute.globallyEnabled - The value for globallyEnabledthis builder for use in a chained invocationpublic final UpdateSecurityGroupRequest.Builder rule(Rule element)
rules list.element - A rules elementthis builder for use in a chained invocationpublic final UpdateSecurityGroupRequest.Builder rules(Rule... elements)
rules list.elements - An array of rules elementsthis builder for use in a chained invocationpublic final UpdateSecurityGroupRequest.Builder rules(Iterable<? extends Rule> elements)
rules list.elements - An iterable of rules elementsthis builder for use in a chained invocationpublic final UpdateSecurityGroupRequest.Builder addAllRules(Iterable<? extends Rule> elements)
rules list.elements - An iterable of rules elementsthis builder for use in a chained invocationpublic UpdateSecurityGroupRequest build()
UpdateSecurityGroupRequest.IllegalStateException - if any required attributes are missingCopyright © 2024. All rights reserved.