/** * Converts this object into its corresponding model * * @return a MethodSchema model * @see org.springframework.cloud.servicebroker.model.catalog.MethodSchema */ public org.springframework.cloud.servicebroker.model.catalog.MethodSchema toModel() { return org.springframework.cloud.servicebroker.model.catalog.MethodSchema.builder() .parameters(this.parameters) .build(); }
/** * Converts this object into its corresponding model * * @return a DashboardClient model * @see org.springframework.cloud.servicebroker.model.catalog.DashboardClient */ public org.springframework.cloud.servicebroker.model.catalog.DashboardClient toModel() { return org.springframework.cloud.servicebroker.model.catalog.DashboardClient.builder() .id(this.id) .secret(this.secret) .redirectUri(this.redirectUri) .build(); }
/** * Create a builder that provides a fluent API for constructing a * {@literal DashboardClient}. * * @return the builder */ public static DashboardClientBuilder builder() { return new DashboardClientBuilder(); }
private static Plan getPlanThree() { return Plan.builder() .id("plan-three-id") .name("Plan Three") .description("Description for Plan Three") .build(); } }
public static ServiceDefinition getSimpleService() { return ServiceDefinition.builder() .id("service-one-id") .name("Service One") .description("Description for Service One") .bindable(true) .plans(getPlanOne(), getPlanTwo(), getPlanThree()) .requires(ServiceDefinitionRequires.SERVICE_REQUIRES_SYSLOG_DRAIN.toString(), ServiceDefinitionRequires.SERVICE_REQUIRES_ROUTE_FORWARDING.toString()) .build(); }
/** * Converts this object into its corresponding model * * @return a ServiceInstanceSchema model * @see org.springframework.cloud.servicebroker.model.catalog.ServiceInstanceSchema */ public org.springframework.cloud.servicebroker.model.catalog.ServiceInstanceSchema toModel() { return org.springframework.cloud.servicebroker.model.catalog.ServiceInstanceSchema.builder() .createMethodSchema(this.create != null ? this.create.toModel() : null) .updateMethodSchema(this.update != null ? this.update.toModel() : null) .build(); }
private void initializeMap() { for (ServiceDefinition def: catalog.getServiceDefinitions()) { serviceDefs.put(def.getId(), def); } }
/** * Construct a {@link ServiceDefinition} from the provided values. * * @return the newly constructed {@literal ServiceDefinition} */ public ServiceDefinition build() { return new ServiceDefinition(id, name, description, bindable, planUpdateable, instancesRetrievable, bindingsRetrievable, plans, tags, metadata, requires, dashboardClient); } }
/** * Create a builder that provides a fluent API for constructing a {@literal ServiceInstanceSchema}. * * @return the builder */ public static ServiceInstanceSchemaBuilder builder() { return new ServiceInstanceSchemaBuilder(); }
/** * Construct a {@link Schemas} from the provided values. * * @return the newly constructed {@literal Schemas} */ public Schemas build() { return new Schemas(serviceInstanceSchema, serviceBindingSchema); } }
/** * Construct a {@link MethodSchema} from the provided values. * * @return the newly constructed {@literal MethodSchema} */ public MethodSchema build() { return new MethodSchema(parameters); } }
/** * Create a builder that provides a fluent API for constructing a {@literal Plan}. * * @return the builder */ public static PlanBuilder builder() { return new PlanBuilder(); }
/** * Create a builder that provides a fluent API for constructing a {@literal ServiceDefinition}. * * @return the builder */ public static ServiceDefinitionBuilder builder() { return new ServiceDefinitionBuilder(); }
/** * Create a builder that provides a fluent API for constructing a {@literal ServiceBindingSchema}. * * @return the builder */ public static ServiceBindingSchemaBuilder builder() { return new ServiceBindingSchemaBuilder(); }
/** * Construct a {@link ServiceBindingSchema} from the provided values. * * @return the newly constructed {@literal ServiceBindingSchema} */ public ServiceBindingSchema build() { return new ServiceBindingSchema(createMethodSchema); } }
/** * Construct a {@link Plan} from the provided values. * * @return the newly constructed {@literal Plan} */ public Plan build() { return new Plan(id, name, description, metadata, free, bindable, schemas); } }
/** * Construct a {@link Catalog} from the provided values. * * @return the newly constructed {@literal Catalog} */ public Catalog build() { return new Catalog(serviceDefinitions); } }
private static Plan getPlanOne() { return Plan.builder() .id("plan-one-id") .name("Plan One") .description("Description for Plan One") .build(); }
/** * Create a builder that provides a fluent API for constructing a * {@literal DashboardClient}. * * @return the builder */ public static DashboardClientBuilder builder() { return new DashboardClientBuilder(); }