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

io.sphere.sdk.zones.ZoneDraftDsl Maven / Gradle / Ivy

There is a newer version: 2.16.0
Show newest version
/*
This class has been generated by class io.sphere.sdk.annotations.processors.ResourceDraftValueAnnotationProcessor
induced by the annotation io.sphere.sdk.annotations.ResourceDraftValue.
in the source class io.sphere.sdk.zones.ZoneDraft.

*/
package io.sphere.sdk.zones;

import javax.annotation.Nullable;
import io.sphere.sdk.models.*;
import java.util.*;
import io.sphere.sdk.utils.*;
import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.sphere.sdk.zones.ZoneDraftBuilder;


public final class ZoneDraftDsl extends io.sphere.sdk.models.Base implements ZoneDraft {
    @Nullable()
    private     final java.lang.String description;
    private     final java.util.Set locations;
    private     final java.lang.String name;

    @JsonCreator()
    ZoneDraftDsl(final java.lang.String description, final java.util.Set locations, final java.lang.String name) {
        
        this.description = description;
        this.locations = locations;
        this.name = name;
        
}
    
    
    @Nullable()
    public java.lang.String getDescription() {
        return description;
}
    
    public java.util.Set getLocations() {
        return locations;
}
    
    public java.lang.String getName() {
        return name;
}
    
    public ZoneDraftDsl withDescription(@Nullable() final java.lang.String description) {
        return newBuilder().description(description).build();
}
    
    public ZoneDraftDsl withLocations(final java.util.Set locations) {
        return newBuilder().locations(locations).build();
}
    
    public ZoneDraftDsl withName(final java.lang.String name) {
        return newBuilder().name(name).build();
}
    
    private ZoneDraftBuilder newBuilder() {
        return new ZoneDraftBuilder(description, locations, name);
}
    
    public static ZoneDraftDsl of(final java.lang.String name, final java.util.Set locations, final java.lang.String description) {
        return new ZoneDraftDsl(description, locations, name);
}
    
    public static ZoneDraftDsl of(final java.lang.String name, final java.util.Set locations) {
        return new ZoneDraftDsl(null, locations, name);
}
    
    public static ZoneDraftDsl of(final ZoneDraft template) {
        return new ZoneDraftDsl(template.getDescription(), template.getLocations(), template.getName());
}
    
    
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy