io.github.cdklabs.cdk.appflow.GoogleAdsConnectorProfile Maven / Gradle / Ivy
package io.github.cdklabs.cdk.appflow;
/**
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.103.1 (build bef2dea)", date = "2024-10-11T10:39:08.231Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@software.amazon.jsii.Jsii(module = io.github.cdklabs.cdk.appflow.$Module.class, fqn = "@cdklabs/cdk-appflow.GoogleAdsConnectorProfile")
public class GoogleAdsConnectorProfile extends io.github.cdklabs.cdk.appflow.ConnectorProfileBase {
protected GoogleAdsConnectorProfile(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected GoogleAdsConnectorProfile(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
super(initializationMode);
}
/**
* @param scope This parameter is required.
* @param id This parameter is required.
* @param props This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public GoogleAdsConnectorProfile(final @org.jetbrains.annotations.NotNull software.constructs.Construct scope, final @org.jetbrains.annotations.NotNull java.lang.String id, final @org.jetbrains.annotations.NotNull io.github.cdklabs.cdk.appflow.GoogleAdsConnectorProfileProps 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"), java.util.Objects.requireNonNull(props, "props is required") });
}
/**
* @param scope This parameter is required.
* @param id This parameter is required.
* @param arn This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public static @org.jetbrains.annotations.NotNull io.github.cdklabs.cdk.appflow.GoogleAdsConnectorProfile fromConnectionProfileArn(final @org.jetbrains.annotations.NotNull software.constructs.Construct scope, final @org.jetbrains.annotations.NotNull java.lang.String id, final @org.jetbrains.annotations.NotNull java.lang.String arn) {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(io.github.cdklabs.cdk.appflow.GoogleAdsConnectorProfile.class, "fromConnectionProfileArn", software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdk.appflow.GoogleAdsConnectorProfile.class), new Object[] { java.util.Objects.requireNonNull(scope, "scope is required"), java.util.Objects.requireNonNull(id, "id is required"), java.util.Objects.requireNonNull(arn, "arn is required") });
}
/**
* @param scope This parameter is required.
* @param id This parameter is required.
* @param name This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public static @org.jetbrains.annotations.NotNull io.github.cdklabs.cdk.appflow.GoogleAdsConnectorProfile fromConnectionProfileName(final @org.jetbrains.annotations.NotNull software.constructs.Construct scope, final @org.jetbrains.annotations.NotNull java.lang.String id, final @org.jetbrains.annotations.NotNull java.lang.String name) {
return software.amazon.jsii.JsiiObject.jsiiStaticCall(io.github.cdklabs.cdk.appflow.GoogleAdsConnectorProfile.class, "fromConnectionProfileName", software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdk.appflow.GoogleAdsConnectorProfile.class), new Object[] { java.util.Objects.requireNonNull(scope, "scope is required"), java.util.Objects.requireNonNull(id, "id is required"), java.util.Objects.requireNonNull(name, "name is required") });
}
/**
* @param props This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@Override
protected @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.appflow.CfnConnectorProfile.ConnectorProfileCredentialsProperty buildConnectorProfileCredentials(final @org.jetbrains.annotations.NotNull io.github.cdklabs.cdk.appflow.ConnectorProfileProps props) {
return software.amazon.jsii.Kernel.call(this, "buildConnectorProfileCredentials", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.appflow.CfnConnectorProfile.ConnectorProfileCredentialsProperty.class), new Object[] { java.util.Objects.requireNonNull(props, "props is required") });
}
/**
* @param props This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@Override
protected @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.appflow.CfnConnectorProfile.ConnectorProfilePropertiesProperty buildConnectorProfileProperties(final @org.jetbrains.annotations.NotNull io.github.cdklabs.cdk.appflow.ConnectorProfileProps props) {
return software.amazon.jsii.Kernel.call(this, "buildConnectorProfileProperties", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.appflow.CfnConnectorProfile.ConnectorProfilePropertiesProperty.class), new Object[] { java.util.Objects.requireNonNull(props, "props is required") });
}
/**
* (experimental) A fluent builder for {@link io.github.cdklabs.cdk.appflow.GoogleAdsConnectorProfile}.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public static final class Builder implements software.amazon.jsii.Builder {
/**
* @return a new instance of {@link Builder}.
* @param scope This parameter is required.
* @param id This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public static Builder create(final software.constructs.Construct scope, final java.lang.String id) {
return new Builder(scope, id);
}
private final software.constructs.Construct scope;
private final java.lang.String id;
private final io.github.cdklabs.cdk.appflow.GoogleAdsConnectorProfileProps.Builder props;
private Builder(final software.constructs.Construct scope, final java.lang.String id) {
this.scope = scope;
this.id = id;
this.props = new io.github.cdklabs.cdk.appflow.GoogleAdsConnectorProfileProps.Builder();
}
/**
* (experimental) TODO: think if this should be here as not all connector profiles have that.
*
* @return {@code this}
* @param key TODO: think if this should be here as not all connector profiles have that. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder key(final software.amazon.awscdk.services.kms.IKey key) {
this.props.key(key);
return this;
}
/**
* @return {@code this}
* @param name This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder name(final java.lang.String name) {
this.props.name(name);
return this;
}
/**
* @return {@code this}
* @param apiVersion This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder apiVersion(final java.lang.String apiVersion) {
this.props.apiVersion(apiVersion);
return this;
}
/**
* @return {@code this}
* @param developerToken This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder developerToken(final software.amazon.awscdk.SecretValue developerToken) {
this.props.developerToken(developerToken);
return this;
}
/**
* @return {@code this}
* @param oAuth This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder oAuth(final io.github.cdklabs.cdk.appflow.GoogleAdsOAuthSettings oAuth) {
this.props.oAuth(oAuth);
return this;
}
/**
* @return {@code this}
* @param managerId This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder managerId(final software.amazon.awscdk.SecretValue managerId) {
this.props.managerId(managerId);
return this;
}
/**
* @return a newly built instance of {@link io.github.cdklabs.cdk.appflow.GoogleAdsConnectorProfile}.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@Override
public io.github.cdklabs.cdk.appflow.GoogleAdsConnectorProfile build() {
return new io.github.cdklabs.cdk.appflow.GoogleAdsConnectorProfile(
this.scope,
this.id,
this.props.build()
);
}
}
}