
com.amazonaws.services.nimblestudio.waiters.AmazonNimbleStudioWaiters Maven / Gradle / Ivy
/*
* Copyright 2016-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.amazonaws.services.nimblestudio.waiters;
import javax.annotation.Generated;
import com.amazonaws.annotation.SdkInternalApi;
import com.amazonaws.services.nimblestudio.AmazonNimbleStudio;
import com.amazonaws.services.nimblestudio.model.*;
import com.amazonaws.waiters.*;
import java.util.concurrent.ExecutorService;
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class AmazonNimbleStudioWaiters {
/**
* Represents the service client
*/
private final AmazonNimbleStudio client;
private final ExecutorService executorService = WaiterExecutorServiceFactory.buildExecutorServiceForWaiter("AmazonNimbleStudioWaiters");
/**
* Constructs a new AmazonNimbleStudioWaiters with the given client
*
* @param client
* Service client
*/
@SdkInternalApi
public AmazonNimbleStudioWaiters(AmazonNimbleStudio client) {
this.client = client;
}
/**
* Builds a StreamingSessionDeleted waiter by using custom parameters waiterParameters and other parameters defined
* in the waiters specification, and then polls until it determines whether the resource entered the desired state
* or not, where polling criteria is bound by either default polling strategy or custom polling strategy.
*/
public Waiter streamingSessionDeleted() {
return new WaiterBuilder().withSdkFunction(new GetStreamingSessionFunction(client))
.withAcceptors(new StreamingSessionDeleted.IsDELETEDMatcher(), new StreamingSessionDeleted.IsDELETE_FAILEDMatcher())
.withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(180), new FixedDelayStrategy(5)))
.withExecutorService(executorService).build();
}
/**
* Builds a StudioComponentDeleted waiter by using custom parameters waiterParameters and other parameters defined
* in the waiters specification, and then polls until it determines whether the resource entered the desired state
* or not, where polling criteria is bound by either default polling strategy or custom polling strategy.
*/
public Waiter studioComponentDeleted() {
return new WaiterBuilder().withSdkFunction(new GetStudioComponentFunction(client))
.withAcceptors(new StudioComponentDeleted.IsDELETEDMatcher(), new StudioComponentDeleted.IsDELETE_FAILEDMatcher())
.withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(120), new FixedDelayStrategy(1)))
.withExecutorService(executorService).build();
}
/**
* Builds a StudioDeleted waiter by using custom parameters waiterParameters and other parameters defined in the
* waiters specification, and then polls until it determines whether the resource entered the desired state or not,
* where polling criteria is bound by either default polling strategy or custom polling strategy.
*/
public Waiter studioDeleted() {
return new WaiterBuilder().withSdkFunction(new GetStudioFunction(client))
.withAcceptors(new StudioDeleted.IsDELETEDMatcher(), new StudioDeleted.IsDELETE_FAILEDMatcher())
.withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(60), new FixedDelayStrategy(2)))
.withExecutorService(executorService).build();
}
/**
* Builds a StreamingSessionStreamReady waiter by using custom parameters waiterParameters and other parameters
* defined in the waiters specification, and then polls until it determines whether the resource entered the desired
* state or not, where polling criteria is bound by either default polling strategy or custom polling strategy.
*/
public Waiter streamingSessionStreamReady() {
return new WaiterBuilder()
.withSdkFunction(new GetStreamingSessionStreamFunction(client))
.withAcceptors(new StreamingSessionStreamReady.IsREADYMatcher(), new StreamingSessionStreamReady.IsCREATE_FAILEDMatcher())
.withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(30), new FixedDelayStrategy(5)))
.withExecutorService(executorService).build();
}
/**
* Builds a StreamingImageReady waiter by using custom parameters waiterParameters and other parameters defined in
* the waiters specification, and then polls until it determines whether the resource entered the desired state or
* not, where polling criteria is bound by either default polling strategy or custom polling strategy.
*/
public Waiter streamingImageReady() {
return new WaiterBuilder()
.withSdkFunction(new GetStreamingImageFunction(client))
.withAcceptors(new StreamingImageReady.IsREADYMatcher(), new StreamingImageReady.IsCREATE_FAILEDMatcher(),
new StreamingImageReady.IsUPDATE_FAILEDMatcher())
.withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(60), new FixedDelayStrategy(2)))
.withExecutorService(executorService).build();
}
/**
* Builds a LaunchProfileReady waiter by using custom parameters waiterParameters and other parameters defined in
* the waiters specification, and then polls until it determines whether the resource entered the desired state or
* not, where polling criteria is bound by either default polling strategy or custom polling strategy.
*/
public Waiter launchProfileReady() {
return new WaiterBuilder()
.withSdkFunction(new GetLaunchProfileFunction(client))
.withAcceptors(new LaunchProfileReady.IsREADYMatcher(), new LaunchProfileReady.IsCREATE_FAILEDMatcher(),
new LaunchProfileReady.IsUPDATE_FAILEDMatcher())
.withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(150), new FixedDelayStrategy(5)))
.withExecutorService(executorService).build();
}
/**
* Builds a StreamingSessionStopped waiter by using custom parameters waiterParameters and other parameters defined
* in the waiters specification, and then polls until it determines whether the resource entered the desired state
* or not, where polling criteria is bound by either default polling strategy or custom polling strategy.
*/
public Waiter streamingSessionStopped() {
return new WaiterBuilder().withSdkFunction(new GetStreamingSessionFunction(client))
.withAcceptors(new StreamingSessionStopped.IsSTOPPEDMatcher(), new StreamingSessionStopped.IsSTOP_FAILEDMatcher())
.withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(180), new FixedDelayStrategy(5)))
.withExecutorService(executorService).build();
}
/**
* Builds a StreamingImageDeleted waiter by using custom parameters waiterParameters and other parameters defined in
* the waiters specification, and then polls until it determines whether the resource entered the desired state or
* not, where polling criteria is bound by either default polling strategy or custom polling strategy.
*/
public Waiter streamingImageDeleted() {
return new WaiterBuilder().withSdkFunction(new GetStreamingImageFunction(client))
.withAcceptors(new StreamingImageDeleted.IsDELETEDMatcher(), new StreamingImageDeleted.IsDELETE_FAILEDMatcher())
.withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(60), new FixedDelayStrategy(2)))
.withExecutorService(executorService).build();
}
/**
* Builds a StreamingSessionReady waiter by using custom parameters waiterParameters and other parameters defined in
* the waiters specification, and then polls until it determines whether the resource entered the desired state or
* not, where polling criteria is bound by either default polling strategy or custom polling strategy.
*/
public Waiter streamingSessionReady() {
return new WaiterBuilder()
.withSdkFunction(new GetStreamingSessionFunction(client))
.withAcceptors(new StreamingSessionReady.IsREADYMatcher(), new StreamingSessionReady.IsCREATE_FAILEDMatcher(),
new StreamingSessionReady.IsSTART_FAILEDMatcher())
.withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(180), new FixedDelayStrategy(10)))
.withExecutorService(executorService).build();
}
/**
* Builds a LaunchProfileDeleted waiter by using custom parameters waiterParameters and other parameters defined in
* the waiters specification, and then polls until it determines whether the resource entered the desired state or
* not, where polling criteria is bound by either default polling strategy or custom polling strategy.
*/
public Waiter launchProfileDeleted() {
return new WaiterBuilder().withSdkFunction(new GetLaunchProfileFunction(client))
.withAcceptors(new LaunchProfileDeleted.IsDELETEDMatcher(), new LaunchProfileDeleted.IsDELETE_FAILEDMatcher())
.withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(150), new FixedDelayStrategy(5)))
.withExecutorService(executorService).build();
}
/**
* Builds a StudioReady waiter by using custom parameters waiterParameters and other parameters defined in the
* waiters specification, and then polls until it determines whether the resource entered the desired state or not,
* where polling criteria is bound by either default polling strategy or custom polling strategy.
*/
public Waiter studioReady() {
return new WaiterBuilder().withSdkFunction(new GetStudioFunction(client))
.withAcceptors(new StudioReady.IsREADYMatcher(), new StudioReady.IsCREATE_FAILEDMatcher(), new StudioReady.IsUPDATE_FAILEDMatcher())
.withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(60), new FixedDelayStrategy(2)))
.withExecutorService(executorService).build();
}
/**
* Builds a StudioComponentReady waiter by using custom parameters waiterParameters and other parameters defined in
* the waiters specification, and then polls until it determines whether the resource entered the desired state or
* not, where polling criteria is bound by either default polling strategy or custom polling strategy.
*/
public Waiter studioComponentReady() {
return new WaiterBuilder()
.withSdkFunction(new GetStudioComponentFunction(client))
.withAcceptors(new StudioComponentReady.IsREADYMatcher(), new StudioComponentReady.IsCREATE_FAILEDMatcher(),
new StudioComponentReady.IsUPDATE_FAILEDMatcher())
.withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(60), new FixedDelayStrategy(2)))
.withExecutorService(executorService).build();
}
public void shutdown() {
executorService.shutdown();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy