All Downloads are FREE. Search and download functionalities are using the official Maven repository.

software.amazon.awscdk.services.gamelift.alpha.MatchmakingConfigurationAttributes Maven / Gradle / Ivy

There is a newer version: 2.170.0-alpha.0
Show newest version
package software.amazon.awscdk.services.gamelift.alpha;

/**
 * (experimental) A full specification of a matchmaking configuration that can be used to import it fluently into the CDK application.
 * 

* 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.sns.*;
 * Topic topic;
 * MatchmakingConfigurationAttributes matchmakingConfigurationAttributes = MatchmakingConfigurationAttributes.builder()
 *         .matchmakingConfigurationArn("matchmakingConfigurationArn")
 *         .matchmakingConfigurationName("matchmakingConfigurationName")
 *         .notificationTarget(topic)
 *         .build();
 * 
*/ @javax.annotation.Generated(value = "jsii-pacmak/1.102.0 (build e354887)", date = "2024-08-23T05:56:25.534Z") @software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.gamelift.alpha.$Module.class, fqn = "@aws-cdk/aws-gamelift-alpha.MatchmakingConfigurationAttributes") @software.amazon.jsii.Jsii.Proxy(MatchmakingConfigurationAttributes.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public interface MatchmakingConfigurationAttributes extends software.amazon.jsii.JsiiSerializable { /** * (experimental) The ARN of the Matchmaking configuration. *

* At least one of matchmakingConfigurationArn and matchmakingConfigurationName must be provided. *

* Default: derived from `matchmakingConfigurationName`. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) default @org.jetbrains.annotations.Nullable java.lang.String getMatchmakingConfigurationArn() { return null; } /** * (experimental) The identifier of the Matchmaking configuration. *

* At least one of matchmakingConfigurationName and matchmakingConfigurationArn must be provided. *

* Default: derived from `matchmakingConfigurationArn`. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) default @org.jetbrains.annotations.Nullable java.lang.String getMatchmakingConfigurationName() { return null; } /** * (experimental) An SNS topic ARN that is set up to receive matchmaking notifications. *

* Default: no notification target binded to imported ressource *

* @see https://docs.aws.amazon.com/gamelift/latest/flexmatchguide/match-notification.html */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) default @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.sns.ITopic getNotificationTarget() { return null; } /** * @return a {@link Builder} of {@link MatchmakingConfigurationAttributes} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) static Builder builder() { return new Builder(); } /** * A builder for {@link MatchmakingConfigurationAttributes} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static final class Builder implements software.amazon.jsii.Builder { java.lang.String matchmakingConfigurationArn; java.lang.String matchmakingConfigurationName; software.amazon.awscdk.services.sns.ITopic notificationTarget; /** * Sets the value of {@link MatchmakingConfigurationAttributes#getMatchmakingConfigurationArn} * @param matchmakingConfigurationArn The ARN of the Matchmaking configuration. * At least one of matchmakingConfigurationArn and matchmakingConfigurationName must be provided. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder matchmakingConfigurationArn(java.lang.String matchmakingConfigurationArn) { this.matchmakingConfigurationArn = matchmakingConfigurationArn; return this; } /** * Sets the value of {@link MatchmakingConfigurationAttributes#getMatchmakingConfigurationName} * @param matchmakingConfigurationName The identifier of the Matchmaking configuration. * At least one of matchmakingConfigurationName and matchmakingConfigurationArn must be provided. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder matchmakingConfigurationName(java.lang.String matchmakingConfigurationName) { this.matchmakingConfigurationName = matchmakingConfigurationName; return this; } /** * Sets the value of {@link MatchmakingConfigurationAttributes#getNotificationTarget} * @param notificationTarget An SNS topic ARN that is set up to receive matchmaking notifications. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder notificationTarget(software.amazon.awscdk.services.sns.ITopic notificationTarget) { this.notificationTarget = notificationTarget; return this; } /** * Builds the configured instance. * @return a new instance of {@link MatchmakingConfigurationAttributes} * @throws NullPointerException if any required attribute was not provided */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public MatchmakingConfigurationAttributes build() { return new Jsii$Proxy(this); } } /** * An implementation for {@link MatchmakingConfigurationAttributes} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements MatchmakingConfigurationAttributes { private final java.lang.String matchmakingConfigurationArn; private final java.lang.String matchmakingConfigurationName; private final software.amazon.awscdk.services.sns.ITopic notificationTarget; /** * Constructor that initializes the object based on values retrieved from the JsiiObject. * @param objRef Reference to the JSII managed object. */ protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); this.matchmakingConfigurationArn = software.amazon.jsii.Kernel.get(this, "matchmakingConfigurationArn", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.matchmakingConfigurationName = software.amazon.jsii.Kernel.get(this, "matchmakingConfigurationName", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.notificationTarget = software.amazon.jsii.Kernel.get(this, "notificationTarget", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.sns.ITopic.class)); } /** * Constructor that initializes the object based on literal property values passed by the {@link Builder}. */ protected Jsii$Proxy(final Builder builder) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); this.matchmakingConfigurationArn = builder.matchmakingConfigurationArn; this.matchmakingConfigurationName = builder.matchmakingConfigurationName; this.notificationTarget = builder.notificationTarget; } @Override public final java.lang.String getMatchmakingConfigurationArn() { return this.matchmakingConfigurationArn; } @Override public final java.lang.String getMatchmakingConfigurationName() { return this.matchmakingConfigurationName; } @Override public final software.amazon.awscdk.services.sns.ITopic getNotificationTarget() { return this.notificationTarget; } @Override @software.amazon.jsii.Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); if (this.getMatchmakingConfigurationArn() != null) { data.set("matchmakingConfigurationArn", om.valueToTree(this.getMatchmakingConfigurationArn())); } if (this.getMatchmakingConfigurationName() != null) { data.set("matchmakingConfigurationName", om.valueToTree(this.getMatchmakingConfigurationName())); } if (this.getNotificationTarget() != null) { data.set("notificationTarget", om.valueToTree(this.getNotificationTarget())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); struct.set("fqn", om.valueToTree("@aws-cdk/aws-gamelift-alpha.MatchmakingConfigurationAttributes")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); obj.set("$jsii.struct", struct); return obj; } @Override public final boolean equals(final Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; MatchmakingConfigurationAttributes.Jsii$Proxy that = (MatchmakingConfigurationAttributes.Jsii$Proxy) o; if (this.matchmakingConfigurationArn != null ? !this.matchmakingConfigurationArn.equals(that.matchmakingConfigurationArn) : that.matchmakingConfigurationArn != null) return false; if (this.matchmakingConfigurationName != null ? !this.matchmakingConfigurationName.equals(that.matchmakingConfigurationName) : that.matchmakingConfigurationName != null) return false; return this.notificationTarget != null ? this.notificationTarget.equals(that.notificationTarget) : that.notificationTarget == null; } @Override public final int hashCode() { int result = this.matchmakingConfigurationArn != null ? this.matchmakingConfigurationArn.hashCode() : 0; result = 31 * result + (this.matchmakingConfigurationName != null ? this.matchmakingConfigurationName.hashCode() : 0); result = 31 * result + (this.notificationTarget != null ? this.notificationTarget.hashCode() : 0); return result; } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy