Interface ListPrincipalThingsV2Response.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListPrincipalThingsV2Response.Builder,,ListPrincipalThingsV2Response> IotResponse.Builder,SdkBuilder<ListPrincipalThingsV2Response.Builder,,ListPrincipalThingsV2Response> SdkPojo,SdkResponse.Builder
- Enclosing class:
ListPrincipalThingsV2Response
public static interface ListPrincipalThingsV2Response.Builder
extends IotResponse.Builder, SdkPojo, CopyableBuilder<ListPrincipalThingsV2Response.Builder,ListPrincipalThingsV2Response>
-
Method Summary
Modifier and TypeMethodDescriptionThe token to use to get the next set of results, or null if there are no additional results.principalThingObjects(Collection<PrincipalThingObject> principalThingObjects) A list ofthingPrincipalObjectthat represents the principal and the type of relation it has with the thing.principalThingObjects(Consumer<PrincipalThingObject.Builder>... principalThingObjects) A list ofthingPrincipalObjectthat represents the principal and the type of relation it has with the thing.principalThingObjects(PrincipalThingObject... principalThingObjects) A list ofthingPrincipalObjectthat represents the principal and the type of relation it has with the thing.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.iot.model.IotResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
principalThingObjects
ListPrincipalThingsV2Response.Builder principalThingObjects(Collection<PrincipalThingObject> principalThingObjects) A list of
thingPrincipalObjectthat represents the principal and the type of relation it has with the thing.- Parameters:
principalThingObjects- A list ofthingPrincipalObjectthat represents the principal and the type of relation it has with the thing.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
principalThingObjects
ListPrincipalThingsV2Response.Builder principalThingObjects(PrincipalThingObject... principalThingObjects) A list of
thingPrincipalObjectthat represents the principal and the type of relation it has with the thing.- Parameters:
principalThingObjects- A list ofthingPrincipalObjectthat represents the principal and the type of relation it has with the thing.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
principalThingObjects
ListPrincipalThingsV2Response.Builder principalThingObjects(Consumer<PrincipalThingObject.Builder>... principalThingObjects) A list of
This is a convenience method that creates an instance of thethingPrincipalObjectthat represents the principal and the type of relation it has with the thing.PrincipalThingObject.Builderavoiding the need to create one manually viaPrincipalThingObject.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toprincipalThingObjects(List<PrincipalThingObject>).- Parameters:
principalThingObjects- a consumer that will call methods onPrincipalThingObject.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
The token to use to get the next set of results, or null if there are no additional results.
- Parameters:
nextToken- The token to use to get the next set of results, or null if there are no additional results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-