
software.amazon.awscdk.services.codepipeline.actions.AlexaSkillDeployActionProps Maven / Gradle / Ivy
package software.amazon.awscdk.services.codepipeline.actions;
/**
* Construction properties of the {@link AlexaSkillDeployAction Alexa deploy Action}.
*/
@javax.annotation.Generated(value = "jsii-pacmak/0.10.3 (build 6bbf743)", date = "2019-05-02T10:15:47.457Z")
public interface AlexaSkillDeployActionProps extends software.amazon.jsii.JsiiSerializable, software.amazon.awscdk.services.codepipeline.CommonActionProps {
/**
* The client id of the developer console token.
*/
java.lang.String getClientId();
/**
* The client secret of the developer console token.
*/
software.amazon.awscdk.SecretValue getClientSecret();
/**
* The source artifact containing the voice model and skill manifest.
*/
software.amazon.awscdk.services.codepipeline.Artifact getInput();
/**
* The refresh token of the developer console token.
*/
software.amazon.awscdk.SecretValue getRefreshToken();
/**
* The Alexa skill id.
*/
java.lang.String getSkillId();
/**
* An optional artifact containing overrides for the skill manifest.
*/
software.amazon.awscdk.services.codepipeline.Artifact getParameterOverridesArtifact();
/**
* @return a {@link Builder} of {@link AlexaSkillDeployActionProps}
*/
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link AlexaSkillDeployActionProps}
*/
final class Builder {
private java.lang.String _clientId;
private software.amazon.awscdk.SecretValue _clientSecret;
private software.amazon.awscdk.services.codepipeline.Artifact _input;
private software.amazon.awscdk.SecretValue _refreshToken;
private java.lang.String _skillId;
@javax.annotation.Nullable
private software.amazon.awscdk.services.codepipeline.Artifact _parameterOverridesArtifact;
private java.lang.String _actionName;
@javax.annotation.Nullable
private java.lang.Number _runOrder;
/**
* Sets the value of ClientId
* @param value The client id of the developer console token.
* @return {@code this}
*/
public Builder withClientId(final java.lang.String value) {
this._clientId = java.util.Objects.requireNonNull(value, "clientId is required");
return this;
}
/**
* Sets the value of ClientSecret
* @param value The client secret of the developer console token.
* @return {@code this}
*/
public Builder withClientSecret(final software.amazon.awscdk.SecretValue value) {
this._clientSecret = java.util.Objects.requireNonNull(value, "clientSecret is required");
return this;
}
/**
* Sets the value of Input
* @param value The source artifact containing the voice model and skill manifest.
* @return {@code this}
*/
public Builder withInput(final software.amazon.awscdk.services.codepipeline.Artifact value) {
this._input = java.util.Objects.requireNonNull(value, "input is required");
return this;
}
/**
* Sets the value of RefreshToken
* @param value The refresh token of the developer console token.
* @return {@code this}
*/
public Builder withRefreshToken(final software.amazon.awscdk.SecretValue value) {
this._refreshToken = java.util.Objects.requireNonNull(value, "refreshToken is required");
return this;
}
/**
* Sets the value of SkillId
* @param value The Alexa skill id.
* @return {@code this}
*/
public Builder withSkillId(final java.lang.String value) {
this._skillId = java.util.Objects.requireNonNull(value, "skillId is required");
return this;
}
/**
* Sets the value of ParameterOverridesArtifact
* @param value An optional artifact containing overrides for the skill manifest.
* @return {@code this}
*/
public Builder withParameterOverridesArtifact(@javax.annotation.Nullable final software.amazon.awscdk.services.codepipeline.Artifact value) {
this._parameterOverridesArtifact = value;
return this;
}
/**
* Sets the value of ActionName
* @param value The physical, human-readable name of the Action. Not that Action names must be unique within a single Stage.
* @return {@code this}
*/
public Builder withActionName(final java.lang.String value) {
this._actionName = java.util.Objects.requireNonNull(value, "actionName is required");
return this;
}
/**
* Sets the value of RunOrder
* @param value The runOrder property for this Action. RunOrder determines the relative order in which multiple Actions in the same Stage execute.
* @return {@code this}
*/
public Builder withRunOrder(@javax.annotation.Nullable final java.lang.Number value) {
this._runOrder = value;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link AlexaSkillDeployActionProps}
* @throws NullPointerException if any required attribute was not provided
*/
public AlexaSkillDeployActionProps build() {
return new AlexaSkillDeployActionProps() {
private final java.lang.String $clientId = java.util.Objects.requireNonNull(_clientId, "clientId is required");
private final software.amazon.awscdk.SecretValue $clientSecret = java.util.Objects.requireNonNull(_clientSecret, "clientSecret is required");
private final software.amazon.awscdk.services.codepipeline.Artifact $input = java.util.Objects.requireNonNull(_input, "input is required");
private final software.amazon.awscdk.SecretValue $refreshToken = java.util.Objects.requireNonNull(_refreshToken, "refreshToken is required");
private final java.lang.String $skillId = java.util.Objects.requireNonNull(_skillId, "skillId is required");
@javax.annotation.Nullable
private final software.amazon.awscdk.services.codepipeline.Artifact $parameterOverridesArtifact = _parameterOverridesArtifact;
private final java.lang.String $actionName = java.util.Objects.requireNonNull(_actionName, "actionName is required");
@javax.annotation.Nullable
private final java.lang.Number $runOrder = _runOrder;
@Override
public java.lang.String getClientId() {
return this.$clientId;
}
@Override
public software.amazon.awscdk.SecretValue getClientSecret() {
return this.$clientSecret;
}
@Override
public software.amazon.awscdk.services.codepipeline.Artifact getInput() {
return this.$input;
}
@Override
public software.amazon.awscdk.SecretValue getRefreshToken() {
return this.$refreshToken;
}
@Override
public java.lang.String getSkillId() {
return this.$skillId;
}
@Override
public software.amazon.awscdk.services.codepipeline.Artifact getParameterOverridesArtifact() {
return this.$parameterOverridesArtifact;
}
@Override
public java.lang.String getActionName() {
return this.$actionName;
}
@Override
public java.lang.Number getRunOrder() {
return this.$runOrder;
}
public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() {
com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE;
com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
obj.set("clientId", om.valueToTree(this.getClientId()));
obj.set("clientSecret", om.valueToTree(this.getClientSecret()));
obj.set("input", om.valueToTree(this.getInput()));
obj.set("refreshToken", om.valueToTree(this.getRefreshToken()));
obj.set("skillId", om.valueToTree(this.getSkillId()));
obj.set("parameterOverridesArtifact", om.valueToTree(this.getParameterOverridesArtifact()));
obj.set("actionName", om.valueToTree(this.getActionName()));
obj.set("runOrder", om.valueToTree(this.getRunOrder()));
return obj;
}
};
}
}
/**
* A proxy class which represents a concrete javascript instance of this type.
*/
final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.awscdk.services.codepipeline.actions.AlexaSkillDeployActionProps {
protected Jsii$Proxy(final software.amazon.jsii.JsiiObject.InitializationMode mode) {
super(mode);
}
/**
* The client id of the developer console token.
*/
@Override
public java.lang.String getClientId() {
return this.jsiiGet("clientId", java.lang.String.class);
}
/**
* The client secret of the developer console token.
*/
@Override
public software.amazon.awscdk.SecretValue getClientSecret() {
return this.jsiiGet("clientSecret", software.amazon.awscdk.SecretValue.class);
}
/**
* The source artifact containing the voice model and skill manifest.
*/
@Override
public software.amazon.awscdk.services.codepipeline.Artifact getInput() {
return this.jsiiGet("input", software.amazon.awscdk.services.codepipeline.Artifact.class);
}
/**
* The refresh token of the developer console token.
*/
@Override
public software.amazon.awscdk.SecretValue getRefreshToken() {
return this.jsiiGet("refreshToken", software.amazon.awscdk.SecretValue.class);
}
/**
* The Alexa skill id.
*/
@Override
public java.lang.String getSkillId() {
return this.jsiiGet("skillId", java.lang.String.class);
}
/**
* An optional artifact containing overrides for the skill manifest.
*/
@Override
@javax.annotation.Nullable
public software.amazon.awscdk.services.codepipeline.Artifact getParameterOverridesArtifact() {
return this.jsiiGet("parameterOverridesArtifact", software.amazon.awscdk.services.codepipeline.Artifact.class);
}
/**
* The physical, human-readable name of the Action. Not that Action names must be unique within a single Stage.
*/
@Override
public java.lang.String getActionName() {
return this.jsiiGet("actionName", java.lang.String.class);
}
/**
* The runOrder property for this Action. RunOrder determines the relative order in which multiple Actions in the same Stage execute.
*
* Default: 1
*
* @see https://docs.aws.amazon.com/codepipeline/latest/userguide/reference-pipeline-structure.html
*/
@Override
@javax.annotation.Nullable
public java.lang.Number getRunOrder() {
return this.jsiiGet("runOrder", java.lang.Number.class);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy