Class InterconnectAttachmentsClient (1.8.1)

public class InterconnectAttachmentsClient implements BackgroundResource

Service Description: The InterconnectAttachments API.

This class provides the ability to make remote calls to the backing service through method calls that map to API methods. Sample code to get started:


 try (InterconnectAttachmentsClient interconnectAttachmentsClient =
     InterconnectAttachmentsClient.create()) {
   String project = "project-309310695";
   String region = "region-934795532";
   String interconnectAttachment = "interconnectAttachment1869250641";
   InterconnectAttachment response =
       interconnectAttachmentsClient.get(project, region, interconnectAttachment);
 }
 

Note: close() needs to be called on the InterconnectAttachmentsClient object to clean up resources such as threads. In the example above, try-with-resources is used, which automatically calls close().

The surface of this class includes several types of Java methods for each of the API's methods:

  1. A "flattened" method. With this type of method, the fields of the request type have been converted into function parameters. It may be the case that not all fields are available as parameters, and not every API method will have a flattened method entry point.
  2. A "request object" method. This type of method only takes one parameter, a request object, which must be constructed before the call. Not every API method will have a request object method.
  3. A "callable" method. This type of method takes no parameters and returns an immutable API callable object, which can be used to initiate calls to the service.

See the individual methods for example code.

Many parameters require resource names to be formatted in a particular way. To assist with these names, this class includes a format method for each type of name, and additionally a parse method to extract the individual identifiers contained within names that are returned.

This class can be customized by passing in a custom instance of InterconnectAttachmentsSettings to create(). For example:

To customize credentials:


 InterconnectAttachmentsSettings interconnectAttachmentsSettings =
     InterconnectAttachmentsSettings.newBuilder()
         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
         .build();
 InterconnectAttachmentsClient interconnectAttachmentsClient =
     InterconnectAttachmentsClient.create(interconnectAttachmentsSettings);
 

To customize the endpoint:


 InterconnectAttachmentsSettings interconnectAttachmentsSettings =
     InterconnectAttachmentsSettings.newBuilder().setEndpoint(myEndpoint).build();
 InterconnectAttachmentsClient interconnectAttachmentsClient =
     InterconnectAttachmentsClient.create(interconnectAttachmentsSettings);
 

Please refer to the GitHub repository's samples for more quickstart code snippets.

Inheritance

java.lang.Object > InterconnectAttachmentsClient

Implements

BackgroundResource

Static Methods

create()

public static final InterconnectAttachmentsClient create()

Constructs an instance of InterconnectAttachmentsClient with default settings.

Returns
TypeDescription
InterconnectAttachmentsClient
Exceptions
TypeDescription
IOException

create(InterconnectAttachmentsSettings settings)

public static final InterconnectAttachmentsClient create(InterconnectAttachmentsSettings settings)

Constructs an instance of InterconnectAttachmentsClient, using the given settings. The channels are created based on the settings passed in, or defaults for any settings that are not set.

Parameter
NameDescription
settingsInterconnectAttachmentsSettings
Returns
TypeDescription
InterconnectAttachmentsClient
Exceptions
TypeDescription
IOException

create(InterconnectAttachmentsStub stub)

public static final InterconnectAttachmentsClient create(InterconnectAttachmentsStub stub)

Constructs an instance of InterconnectAttachmentsClient, using the given stub for making calls. This is for advanced usage - prefer using create(InterconnectAttachmentsSettings).

Parameter
NameDescription
stubInterconnectAttachmentsStub
Returns
TypeDescription
InterconnectAttachmentsClient

Constructors

InterconnectAttachmentsClient(InterconnectAttachmentsSettings settings)

protected InterconnectAttachmentsClient(InterconnectAttachmentsSettings settings)

Constructs an instance of InterconnectAttachmentsClient, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameter
NameDescription
settingsInterconnectAttachmentsSettings

InterconnectAttachmentsClient(InterconnectAttachmentsStub stub)

protected InterconnectAttachmentsClient(InterconnectAttachmentsStub stub)
Parameter
NameDescription
stubInterconnectAttachmentsStub

Methods

aggregatedList(AggregatedListInterconnectAttachmentsRequest request)

public final InterconnectAttachmentsClient.AggregatedListPagedResponse aggregatedList(AggregatedListInterconnectAttachmentsRequest request)

Retrieves an aggregated list of interconnect attachments.

Sample code:


 try (InterconnectAttachmentsClient interconnectAttachmentsClient =
     InterconnectAttachmentsClient.create()) {
   AggregatedListInterconnectAttachmentsRequest request =
       AggregatedListInterconnectAttachmentsRequest.newBuilder()
           .setFilter("filter-1274492040")
           .setIncludeAllScopes(true)
           .setMaxResults(1128457243)
           .setOrderBy("orderBy-1207110587")
           .setPageToken("pageToken873572522")
           .setProject("project-309310695")
           .setReturnPartialSuccess(true)
           .build();
   for (Map.Entry
Parameter
NameDescription
requestAggregatedListInterconnectAttachmentsRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
InterconnectAttachmentsClient.AggregatedListPagedResponse

aggregatedList(String project)

public final InterconnectAttachmentsClient.AggregatedListPagedResponse aggregatedList(String project)

Retrieves an aggregated list of interconnect attachments.

Sample code:


 try (InterconnectAttachmentsClient interconnectAttachmentsClient =
     InterconnectAttachmentsClient.create()) {
   String project = "project-309310695";
   for (Map.Entry
Parameter
NameDescription
projectString

Project ID for this request.

Returns
TypeDescription
InterconnectAttachmentsClient.AggregatedListPagedResponse

aggregatedListCallable()

public final UnaryCallable<AggregatedListInterconnectAttachmentsRequest,InterconnectAttachmentAggregatedList> aggregatedListCallable()

Retrieves an aggregated list of interconnect attachments.

Sample code:


 try (InterconnectAttachmentsClient interconnectAttachmentsClient =
     InterconnectAttachmentsClient.create()) {
   AggregatedListInterconnectAttachmentsRequest request =
       AggregatedListInterconnectAttachmentsRequest.newBuilder()
           .setFilter("filter-1274492040")
           .setIncludeAllScopes(true)
           .setMaxResults(1128457243)
           .setOrderBy("orderBy-1207110587")
           .setPageToken("pageToken873572522")
           .setProject("project-309310695")
           .setReturnPartialSuccess(true)
           .build();
   while (true) {
     InterconnectAttachmentAggregatedList response =
         interconnectAttachmentsClient.aggregatedListCallable().call(request);
     for (Map.Entry
Returns
TypeDescription
UnaryCallable<AggregatedListInterconnectAttachmentsRequest,InterconnectAttachmentAggregatedList>

aggregatedListPagedCallable()

public final UnaryCallable<AggregatedListInterconnectAttachmentsRequest,InterconnectAttachmentsClient.AggregatedListPagedResponse> aggregatedListPagedCallable()

Retrieves an aggregated list of interconnect attachments.

Sample code:


 try (InterconnectAttachmentsClient interconnectAttachmentsClient =
     InterconnectAttachmentsClient.create()) {
   AggregatedListInterconnectAttachmentsRequest request =
       AggregatedListInterconnectAttachmentsRequest.newBuilder()
           .setFilter("filter-1274492040")
           .setIncludeAllScopes(true)
           .setMaxResults(1128457243)
           .setOrderBy("orderBy-1207110587")
           .setPageToken("pageToken873572522")
           .setProject("project-309310695")
           .setReturnPartialSuccess(true)
           .build();
   ApiFuture<>
Returns
TypeDescription
UnaryCallable<AggregatedListInterconnectAttachmentsRequest,AggregatedListPagedResponse>

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()

deleteAsync(DeleteInterconnectAttachmentRequest request)

public final OperationFuture<Operation,Operation> deleteAsync(DeleteInterconnectAttachmentRequest request)

Deletes the specified interconnect attachment.

Sample code:


 try (InterconnectAttachmentsClient interconnectAttachmentsClient =
     InterconnectAttachmentsClient.create()) {
   DeleteInterconnectAttachmentRequest request =
       DeleteInterconnectAttachmentRequest.newBuilder()
           .setInterconnectAttachment("interconnectAttachment1869250641")
           .setProject("project-309310695")
           .setRegion("region-934795532")
           .setRequestId("requestId693933066")
           .build();
   Operation response = interconnectAttachmentsClient.deleteAsync(request).get();
 }
 
Parameter
NameDescription
requestDeleteInterconnectAttachmentRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
OperationFuture<Operation,Operation>

deleteAsync(String project, String region, String interconnectAttachment)

public final OperationFuture<Operation,Operation> deleteAsync(String project, String region, String interconnectAttachment)

Deletes the specified interconnect attachment.

Sample code:


 try (InterconnectAttachmentsClient interconnectAttachmentsClient =
     InterconnectAttachmentsClient.create()) {
   String project = "project-309310695";
   String region = "region-934795532";
   String interconnectAttachment = "interconnectAttachment1869250641";
   Operation response =
       interconnectAttachmentsClient.deleteAsync(project, region, interconnectAttachment).get();
 }
 
Parameters
NameDescription
projectString

Project ID for this request.

regionString

Name of the region for this request.

interconnectAttachmentString

Name of the interconnect attachment to delete.

Returns
TypeDescription
OperationFuture<Operation,Operation>

deleteCallable()

public final UnaryCallable<DeleteInterconnectAttachmentRequest,Operation> deleteCallable()

Deletes the specified interconnect attachment.

Sample code:


 try (InterconnectAttachmentsClient interconnectAttachmentsClient =
     InterconnectAttachmentsClient.create()) {
   DeleteInterconnectAttachmentRequest request =
       DeleteInterconnectAttachmentRequest.newBuilder()
           .setInterconnectAttachment("interconnectAttachment1869250641")
           .setProject("project-309310695")
           .setRegion("region-934795532")
           .setRequestId("requestId693933066")
           .build();
   ApiFuture<Operation> future =
       interconnectAttachmentsClient.deleteCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<DeleteInterconnectAttachmentRequest,Operation>

deleteOperationCallable()

public final OperationCallable<DeleteInterconnectAttachmentRequest,Operation,Operation> deleteOperationCallable()

Deletes the specified interconnect attachment.

Sample code:


 try (InterconnectAttachmentsClient interconnectAttachmentsClient =
     InterconnectAttachmentsClient.create()) {
   DeleteInterconnectAttachmentRequest request =
       DeleteInterconnectAttachmentRequest.newBuilder()
           .setInterconnectAttachment("interconnectAttachment1869250641")
           .setProject("project-309310695")
           .setRegion("region-934795532")
           .setRequestId("requestId693933066")
           .build();
   OperationFuture
Returns
TypeDescription
OperationCallable<DeleteInterconnectAttachmentRequest,Operation,Operation>

get(GetInterconnectAttachmentRequest request)

public final InterconnectAttachment get(GetInterconnectAttachmentRequest request)

Returns the specified interconnect attachment.

Sample code:


 try (InterconnectAttachmentsClient interconnectAttachmentsClient =
     InterconnectAttachmentsClient.create()) {
   GetInterconnectAttachmentRequest request =
       GetInterconnectAttachmentRequest.newBuilder()
           .setInterconnectAttachment("interconnectAttachment1869250641")
           .setProject("project-309310695")
           .setRegion("region-934795532")
           .build();
   InterconnectAttachment response = interconnectAttachmentsClient.get(request);
 }
 
Parameter
NameDescription
requestGetInterconnectAttachmentRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
InterconnectAttachment

get(String project, String region, String interconnectAttachment)

public final InterconnectAttachment get(String project, String region, String interconnectAttachment)

Returns the specified interconnect attachment.

Sample code:


 try (InterconnectAttachmentsClient interconnectAttachmentsClient =
     InterconnectAttachmentsClient.create()) {
   String project = "project-309310695";
   String region = "region-934795532";
   String interconnectAttachment = "interconnectAttachment1869250641";
   InterconnectAttachment response =
       interconnectAttachmentsClient.get(project, region, interconnectAttachment);
 }
 
Parameters
NameDescription
projectString

Project ID for this request.

regionString

Name of the region for this request.

interconnectAttachmentString

Name of the interconnect attachment to return.

Returns
TypeDescription
InterconnectAttachment

getCallable()

public final UnaryCallable<GetInterconnectAttachmentRequest,InterconnectAttachment> getCallable()

Returns the specified interconnect attachment.

Sample code:


 try (InterconnectAttachmentsClient interconnectAttachmentsClient =
     InterconnectAttachmentsClient.create()) {
   GetInterconnectAttachmentRequest request =
       GetInterconnectAttachmentRequest.newBuilder()
           .setInterconnectAttachment("interconnectAttachment1869250641")
           .setProject("project-309310695")
           .setRegion("region-934795532")
           .build();
   ApiFuture
Returns
TypeDescription
UnaryCallable<GetInterconnectAttachmentRequest,InterconnectAttachment>

getSettings()

public final InterconnectAttachmentsSettings getSettings()
Returns
TypeDescription
InterconnectAttachmentsSettings

getStub()

public InterconnectAttachmentsStub getStub()
Returns
TypeDescription
InterconnectAttachmentsStub

insertAsync(InsertInterconnectAttachmentRequest request)

public final OperationFuture<Operation,Operation> insertAsync(InsertInterconnectAttachmentRequest request)

Creates an InterconnectAttachment in the specified project using the data included in the request.

Sample code:


 try (InterconnectAttachmentsClient interconnectAttachmentsClient =
     InterconnectAttachmentsClient.create()) {
   InsertInterconnectAttachmentRequest request =
       InsertInterconnectAttachmentRequest.newBuilder()
           .setInterconnectAttachmentResource(InterconnectAttachment.newBuilder().build())
           .setProject("project-309310695")
           .setRegion("region-934795532")
           .setRequestId("requestId693933066")
           .setValidateOnly(true)
           .build();
   Operation response = interconnectAttachmentsClient.insertAsync(request).get();
 }
 
Parameter
NameDescription
requestInsertInterconnectAttachmentRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
OperationFuture<Operation,Operation>

insertAsync(String project, String region, InterconnectAttachment interconnectAttachmentResource)

public final OperationFuture<Operation,Operation> insertAsync(String project, String region, InterconnectAttachment interconnectAttachmentResource)

Creates an InterconnectAttachment in the specified project using the data included in the request.

Sample code:


 try (InterconnectAttachmentsClient interconnectAttachmentsClient =
     InterconnectAttachmentsClient.create()) {
   String project = "project-309310695";
   String region = "region-934795532";
   InterconnectAttachment interconnectAttachmentResource =
       InterconnectAttachment.newBuilder().build();
   Operation response =
       interconnectAttachmentsClient
           .insertAsync(project, region, interconnectAttachmentResource)
           .get();
 }
 
Parameters
NameDescription
projectString

Project ID for this request.

regionString

Name of the region for this request.

interconnectAttachmentResourceInterconnectAttachment

The body resource for this request

Returns
TypeDescription
OperationFuture<Operation,Operation>

insertCallable()

public final UnaryCallable<InsertInterconnectAttachmentRequest,Operation> insertCallable()

Creates an InterconnectAttachment in the specified project using the data included in the request.

Sample code:


 try (InterconnectAttachmentsClient interconnectAttachmentsClient =
     InterconnectAttachmentsClient.create()) {
   InsertInterconnectAttachmentRequest request =
       InsertInterconnectAttachmentRequest.newBuilder()
           .setInterconnectAttachmentResource(InterconnectAttachment.newBuilder().build())
           .setProject("project-309310695")
           .setRegion("region-934795532")
           .setRequestId("requestId693933066")
           .setValidateOnly(true)
           .build();
   ApiFuture<Operation> future =
       interconnectAttachmentsClient.insertCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<InsertInterconnectAttachmentRequest,Operation>

insertOperationCallable()

public final OperationCallable<InsertInterconnectAttachmentRequest,Operation,Operation> insertOperationCallable()

Creates an InterconnectAttachment in the specified project using the data included in the request.

Sample code:


 try (InterconnectAttachmentsClient interconnectAttachmentsClient =
     InterconnectAttachmentsClient.create()) {
   InsertInterconnectAttachmentRequest request =
       InsertInterconnectAttachmentRequest.newBuilder()
           .setInterconnectAttachmentResource(InterconnectAttachment.newBuilder().build())
           .setProject("project-309310695")
           .setRegion("region-934795532")
           .setRequestId("requestId693933066")
           .setValidateOnly(true)
           .build();
   OperationFuture
Returns
TypeDescription
OperationCallable<InsertInterconnectAttachmentRequest,Operation,Operation>

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

list(ListInterconnectAttachmentsRequest request)

public final InterconnectAttachmentsClient.ListPagedResponse list(ListInterconnectAttachmentsRequest request)

Retrieves the list of interconnect attachments contained within the specified region.

Sample code:


 try (InterconnectAttachmentsClient interconnectAttachmentsClient =
     InterconnectAttachmentsClient.create()) {
   ListInterconnectAttachmentsRequest request =
       ListInterconnectAttachmentsRequest.newBuilder()
           .setFilter("filter-1274492040")
           .setMaxResults(1128457243)
           .setOrderBy("orderBy-1207110587")
           .setPageToken("pageToken873572522")
           .setProject("project-309310695")
           .setRegion("region-934795532")
           .setReturnPartialSuccess(true)
           .build();
   for (InterconnectAttachment element :
       interconnectAttachmentsClient.list(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
requestListInterconnectAttachmentsRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
InterconnectAttachmentsClient.ListPagedResponse

list(String project, String region)

public final InterconnectAttachmentsClient.ListPagedResponse list(String project, String region)

Retrieves the list of interconnect attachments contained within the specified region.

Sample code:


 try (InterconnectAttachmentsClient interconnectAttachmentsClient =
     InterconnectAttachmentsClient.create()) {
   String project = "project-309310695";
   String region = "region-934795532";
   for (InterconnectAttachment element :
       interconnectAttachmentsClient.list(project, region).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameters
NameDescription
projectString

Project ID for this request.

regionString

Name of the region for this request.

Returns
TypeDescription
InterconnectAttachmentsClient.ListPagedResponse

listCallable()

public final UnaryCallable<ListInterconnectAttachmentsRequest,InterconnectAttachmentList> listCallable()

Retrieves the list of interconnect attachments contained within the specified region.

Sample code:


 try (InterconnectAttachmentsClient interconnectAttachmentsClient =
     InterconnectAttachmentsClient.create()) {
   ListInterconnectAttachmentsRequest request =
       ListInterconnectAttachmentsRequest.newBuilder()
           .setFilter("filter-1274492040")
           .setMaxResults(1128457243)
           .setOrderBy("orderBy-1207110587")
           .setPageToken("pageToken873572522")
           .setProject("project-309310695")
           .setRegion("region-934795532")
           .setReturnPartialSuccess(true)
           .build();
   while (true) {
     InterconnectAttachmentList response =
         interconnectAttachmentsClient.listCallable().call(request);
     for (InterconnectAttachment element : response.getResponsesList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
TypeDescription
UnaryCallable<ListInterconnectAttachmentsRequest,InterconnectAttachmentList>

listPagedCallable()

public final UnaryCallable<ListInterconnectAttachmentsRequest,InterconnectAttachmentsClient.ListPagedResponse> listPagedCallable()

Retrieves the list of interconnect attachments contained within the specified region.

Sample code:


 try (InterconnectAttachmentsClient interconnectAttachmentsClient =
     InterconnectAttachmentsClient.create()) {
   ListInterconnectAttachmentsRequest request =
       ListInterconnectAttachmentsRequest.newBuilder()
           .setFilter("filter-1274492040")
           .setMaxResults(1128457243)
           .setOrderBy("orderBy-1207110587")
           .setPageToken("pageToken873572522")
           .setProject("project-309310695")
           .setRegion("region-934795532")
           .setReturnPartialSuccess(true)
           .build();
   ApiFuture
Returns
TypeDescription
UnaryCallable<ListInterconnectAttachmentsRequest,ListPagedResponse>

patchAsync(PatchInterconnectAttachmentRequest request)

public final OperationFuture<Operation,Operation> patchAsync(PatchInterconnectAttachmentRequest request)

Updates the specified interconnect attachment with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.

Sample code:


 try (InterconnectAttachmentsClient interconnectAttachmentsClient =
     InterconnectAttachmentsClient.create()) {
   PatchInterconnectAttachmentRequest request =
       PatchInterconnectAttachmentRequest.newBuilder()
           .setInterconnectAttachment("interconnectAttachment1869250641")
           .setInterconnectAttachmentResource(InterconnectAttachment.newBuilder().build())
           .setProject("project-309310695")
           .setRegion("region-934795532")
           .setRequestId("requestId693933066")
           .build();
   Operation response = interconnectAttachmentsClient.patchAsync(request).get();
 }
 
Parameter
NameDescription
requestPatchInterconnectAttachmentRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
OperationFuture<Operation,Operation>

patchAsync(String project, String region, String interconnectAttachment, InterconnectAttachment interconnectAttachmentResource)

public final OperationFuture<Operation,Operation> patchAsync(String project, String region, String interconnectAttachment, InterconnectAttachment interconnectAttachmentResource)

Updates the specified interconnect attachment with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.

Sample code:


 try (InterconnectAttachmentsClient interconnectAttachmentsClient =
     InterconnectAttachmentsClient.create()) {
   String project = "project-309310695";
   String region = "region-934795532";
   String interconnectAttachment = "interconnectAttachment1869250641";
   InterconnectAttachment interconnectAttachmentResource =
       InterconnectAttachment.newBuilder().build();
   Operation response =
       interconnectAttachmentsClient
           .patchAsync(project, region, interconnectAttachment, interconnectAttachmentResource)
           .get();
 }
 
Parameters
NameDescription
projectString

Project ID for this request.

regionString

Name of the region scoping this request.

interconnectAttachmentString

Name of the interconnect attachment to patch.

interconnectAttachmentResourceInterconnectAttachment

The body resource for this request

Returns
TypeDescription
OperationFuture<Operation,Operation>

patchCallable()

public final UnaryCallable<PatchInterconnectAttachmentRequest,Operation> patchCallable()

Updates the specified interconnect attachment with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.

Sample code:


 try (InterconnectAttachmentsClient interconnectAttachmentsClient =
     InterconnectAttachmentsClient.create()) {
   PatchInterconnectAttachmentRequest request =
       PatchInterconnectAttachmentRequest.newBuilder()
           .setInterconnectAttachment("interconnectAttachment1869250641")
           .setInterconnectAttachmentResource(InterconnectAttachment.newBuilder().build())
           .setProject("project-309310695")
           .setRegion("region-934795532")
           .setRequestId("requestId693933066")
           .build();
   ApiFuture<Operation> future =
       interconnectAttachmentsClient.patchCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<PatchInterconnectAttachmentRequest,Operation>

patchOperationCallable()

public final OperationCallable<PatchInterconnectAttachmentRequest,Operation,Operation> patchOperationCallable()

Updates the specified interconnect attachment with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.

Sample code:


 try (InterconnectAttachmentsClient interconnectAttachmentsClient =
     InterconnectAttachmentsClient.create()) {
   PatchInterconnectAttachmentRequest request =
       PatchInterconnectAttachmentRequest.newBuilder()
           .setInterconnectAttachment("interconnectAttachment1869250641")
           .setInterconnectAttachmentResource(InterconnectAttachment.newBuilder().build())
           .setProject("project-309310695")
           .setRegion("region-934795532")
           .setRequestId("requestId693933066")
           .build();
   OperationFuture
Returns
TypeDescription
OperationCallable<PatchInterconnectAttachmentRequest,Operation,Operation>

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()