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

software.amazon.awscdk.services.codepipeline.actions.AlexaSkillDeployActionProps Maven / Gradle / Ivy

There is a newer version: 1.204.0
Show newest version
package software.amazon.awscdk.services.codepipeline.actions;

/**
 * Construction properties of the {@link AlexaSkillDeployAction Alexa deploy Action}.
 * 

* Example: *

*

 * // Read the secrets from ParameterStore
 * SecretValue clientId = SecretValue.secretsManager("AlexaClientId");
 * SecretValue clientSecret = SecretValue.secretsManager("AlexaClientSecret");
 * SecretValue refreshToken = SecretValue.secretsManager("AlexaRefreshToken");
 * // Add deploy action
 * Artifact sourceOutput = new Artifact();
 * AlexaSkillDeployAction.Builder.create()
 *         .actionName("DeploySkill")
 *         .runOrder(1)
 *         .input(sourceOutput)
 *         .clientId(clientId.toString())
 *         .clientSecret(clientSecret)
 *         .refreshToken(refreshToken)
 *         .skillId("amzn1.ask.skill.12345678-1234-1234-1234-123456789012")
 *         .build();
 * 
*/ @javax.annotation.Generated(value = "jsii-pacmak/1.74.0 (build 6d08790)", date = "2023-05-19T23:09:34.786Z") @software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.codepipeline.actions.$Module.class, fqn = "@aws-cdk/aws-codepipeline-actions.AlexaSkillDeployActionProps") @software.amazon.jsii.Jsii.Proxy(AlexaSkillDeployActionProps.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public interface AlexaSkillDeployActionProps extends software.amazon.jsii.JsiiSerializable, software.amazon.awscdk.services.codepipeline.CommonActionProps { /** * The client id of the developer console token. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @org.jetbrains.annotations.NotNull java.lang.String getClientId(); /** * The client secret of the developer console token. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @org.jetbrains.annotations.NotNull software.amazon.awscdk.core.SecretValue getClientSecret(); /** * The source artifact containing the voice model and skill manifest. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.codepipeline.Artifact getInput(); /** * The refresh token of the developer console token. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @org.jetbrains.annotations.NotNull software.amazon.awscdk.core.SecretValue getRefreshToken(); /** * The Alexa skill id. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @org.jetbrains.annotations.NotNull java.lang.String getSkillId(); /** * An optional artifact containing overrides for the skill manifest. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.codepipeline.Artifact getParameterOverridesArtifact() { return null; } /** * @return a {@link Builder} of {@link AlexaSkillDeployActionProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) static Builder builder() { return new Builder(); } /** * A builder for {@link AlexaSkillDeployActionProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static final class Builder implements software.amazon.jsii.Builder { java.lang.String clientId; software.amazon.awscdk.core.SecretValue clientSecret; software.amazon.awscdk.services.codepipeline.Artifact input; software.amazon.awscdk.core.SecretValue refreshToken; java.lang.String skillId; software.amazon.awscdk.services.codepipeline.Artifact parameterOverridesArtifact; java.lang.String actionName; java.lang.Number runOrder; java.lang.String variablesNamespace; /** * Sets the value of {@link AlexaSkillDeployActionProps#getClientId} * @param clientId The client id of the developer console token. This parameter is required. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder clientId(java.lang.String clientId) { this.clientId = clientId; return this; } /** * Sets the value of {@link AlexaSkillDeployActionProps#getClientSecret} * @param clientSecret The client secret of the developer console token. This parameter is required. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder clientSecret(software.amazon.awscdk.core.SecretValue clientSecret) { this.clientSecret = clientSecret; return this; } /** * Sets the value of {@link AlexaSkillDeployActionProps#getInput} * @param input The source artifact containing the voice model and skill manifest. This parameter is required. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder input(software.amazon.awscdk.services.codepipeline.Artifact input) { this.input = input; return this; } /** * Sets the value of {@link AlexaSkillDeployActionProps#getRefreshToken} * @param refreshToken The refresh token of the developer console token. This parameter is required. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder refreshToken(software.amazon.awscdk.core.SecretValue refreshToken) { this.refreshToken = refreshToken; return this; } /** * Sets the value of {@link AlexaSkillDeployActionProps#getSkillId} * @param skillId The Alexa skill id. This parameter is required. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder skillId(java.lang.String skillId) { this.skillId = skillId; return this; } /** * Sets the value of {@link AlexaSkillDeployActionProps#getParameterOverridesArtifact} * @param parameterOverridesArtifact An optional artifact containing overrides for the skill manifest. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder parameterOverridesArtifact(software.amazon.awscdk.services.codepipeline.Artifact parameterOverridesArtifact) { this.parameterOverridesArtifact = parameterOverridesArtifact; return this; } /** * Sets the value of {@link AlexaSkillDeployActionProps#getActionName} * @param actionName The physical, human-readable name of the Action. This parameter is required. * Note that Action names must be unique within a single Stage. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder actionName(java.lang.String actionName) { this.actionName = actionName; return this; } /** * Sets the value of {@link AlexaSkillDeployActionProps#getRunOrder} * @param runOrder The runOrder property for this Action. * RunOrder determines the relative order in which multiple Actions in the same Stage execute. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder runOrder(java.lang.Number runOrder) { this.runOrder = runOrder; return this; } /** * Sets the value of {@link AlexaSkillDeployActionProps#getVariablesNamespace} * @param variablesNamespace The name of the namespace to use for variables emitted by this action. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder variablesNamespace(java.lang.String variablesNamespace) { this.variablesNamespace = variablesNamespace; return this; } /** * Builds the configured instance. * @return a new instance of {@link AlexaSkillDeployActionProps} * @throws NullPointerException if any required attribute was not provided */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public AlexaSkillDeployActionProps build() { return new Jsii$Proxy(this); } } /** * An implementation for {@link AlexaSkillDeployActionProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements AlexaSkillDeployActionProps { private final java.lang.String clientId; private final software.amazon.awscdk.core.SecretValue clientSecret; private final software.amazon.awscdk.services.codepipeline.Artifact input; private final software.amazon.awscdk.core.SecretValue refreshToken; private final java.lang.String skillId; private final software.amazon.awscdk.services.codepipeline.Artifact parameterOverridesArtifact; private final java.lang.String actionName; private final java.lang.Number runOrder; private final java.lang.String variablesNamespace; /** * 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.clientId = software.amazon.jsii.Kernel.get(this, "clientId", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.clientSecret = software.amazon.jsii.Kernel.get(this, "clientSecret", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.core.SecretValue.class)); this.input = software.amazon.jsii.Kernel.get(this, "input", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.codepipeline.Artifact.class)); this.refreshToken = software.amazon.jsii.Kernel.get(this, "refreshToken", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.core.SecretValue.class)); this.skillId = software.amazon.jsii.Kernel.get(this, "skillId", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.parameterOverridesArtifact = software.amazon.jsii.Kernel.get(this, "parameterOverridesArtifact", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.codepipeline.Artifact.class)); this.actionName = software.amazon.jsii.Kernel.get(this, "actionName", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.runOrder = software.amazon.jsii.Kernel.get(this, "runOrder", software.amazon.jsii.NativeType.forClass(java.lang.Number.class)); this.variablesNamespace = software.amazon.jsii.Kernel.get(this, "variablesNamespace", software.amazon.jsii.NativeType.forClass(java.lang.String.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.clientId = java.util.Objects.requireNonNull(builder.clientId, "clientId is required"); this.clientSecret = java.util.Objects.requireNonNull(builder.clientSecret, "clientSecret is required"); this.input = java.util.Objects.requireNonNull(builder.input, "input is required"); this.refreshToken = java.util.Objects.requireNonNull(builder.refreshToken, "refreshToken is required"); this.skillId = java.util.Objects.requireNonNull(builder.skillId, "skillId is required"); this.parameterOverridesArtifact = builder.parameterOverridesArtifact; this.actionName = java.util.Objects.requireNonNull(builder.actionName, "actionName is required"); this.runOrder = builder.runOrder; this.variablesNamespace = builder.variablesNamespace; } @Override public final java.lang.String getClientId() { return this.clientId; } @Override public final software.amazon.awscdk.core.SecretValue getClientSecret() { return this.clientSecret; } @Override public final software.amazon.awscdk.services.codepipeline.Artifact getInput() { return this.input; } @Override public final software.amazon.awscdk.core.SecretValue getRefreshToken() { return this.refreshToken; } @Override public final java.lang.String getSkillId() { return this.skillId; } @Override public final software.amazon.awscdk.services.codepipeline.Artifact getParameterOverridesArtifact() { return this.parameterOverridesArtifact; } @Override public final java.lang.String getActionName() { return this.actionName; } @Override public final java.lang.Number getRunOrder() { return this.runOrder; } @Override public final java.lang.String getVariablesNamespace() { return this.variablesNamespace; } @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(); data.set("clientId", om.valueToTree(this.getClientId())); data.set("clientSecret", om.valueToTree(this.getClientSecret())); data.set("input", om.valueToTree(this.getInput())); data.set("refreshToken", om.valueToTree(this.getRefreshToken())); data.set("skillId", om.valueToTree(this.getSkillId())); if (this.getParameterOverridesArtifact() != null) { data.set("parameterOverridesArtifact", om.valueToTree(this.getParameterOverridesArtifact())); } data.set("actionName", om.valueToTree(this.getActionName())); if (this.getRunOrder() != null) { data.set("runOrder", om.valueToTree(this.getRunOrder())); } if (this.getVariablesNamespace() != null) { data.set("variablesNamespace", om.valueToTree(this.getVariablesNamespace())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); struct.set("fqn", om.valueToTree("@aws-cdk/aws-codepipeline-actions.AlexaSkillDeployActionProps")); 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; AlexaSkillDeployActionProps.Jsii$Proxy that = (AlexaSkillDeployActionProps.Jsii$Proxy) o; if (!clientId.equals(that.clientId)) return false; if (!clientSecret.equals(that.clientSecret)) return false; if (!input.equals(that.input)) return false; if (!refreshToken.equals(that.refreshToken)) return false; if (!skillId.equals(that.skillId)) return false; if (this.parameterOverridesArtifact != null ? !this.parameterOverridesArtifact.equals(that.parameterOverridesArtifact) : that.parameterOverridesArtifact != null) return false; if (!actionName.equals(that.actionName)) return false; if (this.runOrder != null ? !this.runOrder.equals(that.runOrder) : that.runOrder != null) return false; return this.variablesNamespace != null ? this.variablesNamespace.equals(that.variablesNamespace) : that.variablesNamespace == null; } @Override public final int hashCode() { int result = this.clientId.hashCode(); result = 31 * result + (this.clientSecret.hashCode()); result = 31 * result + (this.input.hashCode()); result = 31 * result + (this.refreshToken.hashCode()); result = 31 * result + (this.skillId.hashCode()); result = 31 * result + (this.parameterOverridesArtifact != null ? this.parameterOverridesArtifact.hashCode() : 0); result = 31 * result + (this.actionName.hashCode()); result = 31 * result + (this.runOrder != null ? this.runOrder.hashCode() : 0); result = 31 * result + (this.variablesNamespace != null ? this.variablesNamespace.hashCode() : 0); return result; } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy