Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
package software.amazon.awscdk.services.gamelift.alpha;
/**
* (experimental) Base class for new and imported GameLift fleet.
*
* Example:
*
*
* // The code below shows an example of how to instantiate this type.
* // The values are placeholders you should change.
* import software.amazon.awscdk.services.gamelift.alpha.*;
* import software.amazon.awscdk.services.iam.*;
* Role role;
* IFleet fleetBase = FleetBase.fromFleetAttributes(this, "MyFleetBase", FleetAttributes.builder()
* .fleetArn("fleetArn")
* .fleetId("fleetId")
* .role(role)
* .build());
*
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.104.0 (build e79254c)", date = "2024-12-27T17:02:12.097Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.gamelift.alpha.$Module.class, fqn = "@aws-cdk/aws-gamelift-alpha.FleetBase")
public abstract class FleetBase extends software.amazon.awscdk.Resource implements software.amazon.awscdk.services.gamelift.alpha.IFleet {
protected FleetBase(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected FleetBase(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
super(initializationMode);
}
/**
* @param scope This parameter is required.
* @param id This parameter is required.
* @param props
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
protected FleetBase(final @org.jetbrains.annotations.NotNull software.constructs.Construct scope, final @org.jetbrains.annotations.NotNull java.lang.String id, final @org.jetbrains.annotations.Nullable software.amazon.awscdk.ResourceProps props) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(scope, "scope is required"), java.util.Objects.requireNonNull(id, "id is required"), props });
}
/**
* @param scope This parameter is required.
* @param id This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
protected FleetBase(final @org.jetbrains.annotations.NotNull software.constructs.Construct scope, final @org.jetbrains.annotations.NotNull java.lang.String id) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(scope, "scope is required"), java.util.Objects.requireNonNull(id, "id is required") });
}
/**
* (experimental) Import an existing fleet from its attributes.
*
* @param scope This parameter is required.
* @param id This parameter is required.
* @param attrs This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public static @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.gamelift.alpha.IFleet fromFleetAttributes(final @org.jetbrains.annotations.NotNull software.constructs.Construct scope, final @org.jetbrains.annotations.NotNull java.lang.String id, final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.gamelift.alpha.FleetAttributes attrs) {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.awscdk.services.gamelift.alpha.FleetBase.class, "fromFleetAttributes", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.gamelift.alpha.IFleet.class), new Object[] { java.util.Objects.requireNonNull(scope, "scope is required"), java.util.Objects.requireNonNull(id, "id is required"), java.util.Objects.requireNonNull(attrs, "attrs is required") });
}
/**
* (experimental) Defines an alias for this fleet.
*
*
* FleetBase fleet;
* fleet.addAlias("Live");
* // Is equivalent to
* // Is equivalent to
* Alias.Builder.create(this, "AliasLive")
* .aliasName("Live")
* .fleet(fleet)
* .build();
*
*
* @param aliasName The name of the alias. This parameter is required.
* @param options Alias options.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.gamelift.alpha.Alias addAlias(final @org.jetbrains.annotations.NotNull java.lang.String aliasName, final @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.gamelift.alpha.AliasOptions options) {
return software.amazon.jsii.Kernel.call(this, "addAlias", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.gamelift.alpha.Alias.class), new Object[] { java.util.Objects.requireNonNull(aliasName, "aliasName is required"), options });
}
/**
* (experimental) Defines an alias for this fleet.
*
*
* FleetBase fleet;
* fleet.addAlias("Live");
* // Is equivalent to
* // Is equivalent to
* Alias.Builder.create(this, "AliasLive")
* .aliasName("Live")
* .fleet(fleet)
* .build();
*
*
* @param aliasName The name of the alias. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.gamelift.alpha.Alias addAlias(final @org.jetbrains.annotations.NotNull java.lang.String aliasName) {
return software.amazon.jsii.Kernel.call(this, "addAlias", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.gamelift.alpha.Alias.class), new Object[] { java.util.Objects.requireNonNull(aliasName, "aliasName is required") });
}
/**
* (experimental) Adds a remote locations to deploy additional instances to and manage as part of the fleet.
*
* @param location The location to add. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public void addInternalLocation(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.gamelift.alpha.Location location) {
software.amazon.jsii.Kernel.call(this, "addInternalLocation", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(location, "location is required") });
}
/**
* (experimental) Adds a remote locations to deploy additional instances to and manage as part of the fleet.
*
* @param region The AWS region to add. This parameter is required.
* @param desiredCapacity
* @param minSize
* @param maxSize
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public void addLocation(final @org.jetbrains.annotations.NotNull java.lang.String region, final @org.jetbrains.annotations.Nullable java.lang.Number desiredCapacity, final @org.jetbrains.annotations.Nullable java.lang.Number minSize, final @org.jetbrains.annotations.Nullable java.lang.Number maxSize) {
software.amazon.jsii.Kernel.call(this, "addLocation", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(region, "region is required"), desiredCapacity, minSize, maxSize });
}
/**
* (experimental) Adds a remote locations to deploy additional instances to and manage as part of the fleet.
*
* @param region The AWS region to add. This parameter is required.
* @param desiredCapacity
* @param minSize
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public void addLocation(final @org.jetbrains.annotations.NotNull java.lang.String region, final @org.jetbrains.annotations.Nullable java.lang.Number desiredCapacity, final @org.jetbrains.annotations.Nullable java.lang.Number minSize) {
software.amazon.jsii.Kernel.call(this, "addLocation", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(region, "region is required"), desiredCapacity, minSize });
}
/**
* (experimental) Adds a remote locations to deploy additional instances to and manage as part of the fleet.
*
* @param region The AWS region to add. This parameter is required.
* @param desiredCapacity
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public void addLocation(final @org.jetbrains.annotations.NotNull java.lang.String region, final @org.jetbrains.annotations.Nullable java.lang.Number desiredCapacity) {
software.amazon.jsii.Kernel.call(this, "addLocation", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(region, "region is required"), desiredCapacity });
}
/**
* (experimental) Adds a remote locations to deploy additional instances to and manage as part of the fleet.
*
* @param region The AWS region to add. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public void addLocation(final @org.jetbrains.annotations.NotNull java.lang.String region) {
software.amazon.jsii.Kernel.call(this, "addLocation", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(region, "region is required") });
}
/**
* (experimental) Grant the grantee identity permissions to perform actions.
*
* @param grantee This parameter is required.
* @param actions This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@Override
public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.iam.Grant grant(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.iam.IGrantable grantee, final @org.jetbrains.annotations.NotNull java.lang.String... actions) {
return software.amazon.jsii.Kernel.call(this, "grant", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.iam.Grant.class), java.util.stream.Stream.concat(java.util.Arrays.