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

io.sphere.sdk.extensions.AzureFunctionsAuthenticationBuilder Maven / Gradle / Ivy

There is a newer version: 2.16.0
Show newest version
package io.sphere.sdk.extensions;

import io.sphere.sdk.models.Base;
import io.sphere.sdk.models.Builder;
import java.lang.String;
import javax.annotation.Generated;

/**
 * Builder for {@link AzureFunctionsAuthentication}.
 */
@Generated(
    value = "io.sphere.sdk.annotations.processors.generators.HasBuilderGenerator",
    comments = "Generated from: io.sphere.sdk.extensions.AzureFunctionsAuthentication"
)
public final class AzureFunctionsAuthenticationBuilder extends Base implements Builder {
  private String key;

  AzureFunctionsAuthenticationBuilder() {
  }

  AzureFunctionsAuthenticationBuilder(final String key) {
    this.key = key;
  }

  /**
   * Sets the {@code key} property of this builder.
   *
   * @param key the value for {@link AzureFunctionsAuthentication#getKey()}
   * @return this builder
   */
  public AzureFunctionsAuthenticationBuilder key(final String key) {
    this.key = key;
    return this;
  }

  /**
   * Creates a new instance of {@code AzureFunctionsAuthentication} with the values of this builder.
   *
   * @return the instance
   */
  public AzureFunctionsAuthentication build() {
    return new AzureFunctionsAuthenticationImpl(key);
  }

  /**
   * Creates a new object initialized with the given values.
   *
   * @param key initial value for the {@link AzureFunctionsAuthentication#getKey()} property
   * @return new object initialized with the given values
   */
  public static AzureFunctionsAuthenticationBuilder of(final String key) {
    return new AzureFunctionsAuthenticationBuilder(key);
  }

  /**
   * Creates a new object initialized with the fields of the template parameter.
   *
   * @param template the template
   * @return a new object initialized from the template
   */
  public static AzureFunctionsAuthenticationBuilder of(
      final AzureFunctionsAuthentication template) {
    return new AzureFunctionsAuthenticationBuilder(template.getKey());
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy