Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package io.advantageous.qbit.meta.swagger.builders;
  
  
  public class ApiInfoBuilder {
    
Required. The title of the application.
 
     private String title;

    
A short description of the application. GFM syntax can be used for rich text representation.
 
     private String description;

    
The Terms of Service for the API.
 
     private String termsOfService;


    
The Contact info for the Service API.
 
     private Contact contact;
     private ContactBuilder contactBuilder;


    
The License info for the Service API.
 
     private License license;
     private LicenseBuilder licenseBuilder;


    
Required Provides the version of the application API (not to be confused with the specification version)
 
     private String version;
 
     public String getTitle() {
         return ;
     }
 
     public ApiInfoBuilder setTitle(String title) {
         this. = title;
         return this;
     }
 
     public String getDescription() {
         return ;
     }
 
     public ApiInfoBuilder setDescription(String description) {
         this. = description;
         return this;
     }
 
     public String getTermsOfService() {
         return ;
     }
 
     public ApiInfoBuilder setTermsOfService(String termsOfService) {
         this. = termsOfService;
         return this;
     }
 
     public ContactBuilder getContactBuilder() {
         if ( == null) {
              = new ContactBuilder();
         }
         return ;
     }
 
     public ApiInfoBuilder setContactBuilder(ContactBuilder contactBuilder) {
         this. = contactBuilder;
         return this;
     }
 
     public Contact getContact() {
         if ( == null) {
              = getContactBuilder().build();
         }
         return ;
     }
 
     public ApiInfoBuilder setContact(Contact contact) {
         this. = contact;
         return this;
     }
 
     public String getVersion() {
         return ;
     }
 
     public ApiInfoBuilder setVersion(String version) {
         this. = version;
        return this;
    }
    public License getLicense() {
        if (==null) {
             = getLicenseBuilder().build();
        }
        return ;
    }
    public ApiInfoBuilder setLicense(License license) {
        this. = license;
        return this;
    }
    public LicenseBuilder getLicenseBuilder() {
        if ( == null) {
             = new LicenseBuilder();
        }
        return ;
    }
    public ApiInfoBuilder setLicenseBuilder(LicenseBuilder licenseBuilder) {
        this. = licenseBuilder;
        return this;
    }
    public ApiInfo build() {
        return new ApiInfo(getTitle(), getDescription(), getTermsOfService(),
                getContact(), getVersion(), getLicense());
    }
New to GrepCode? Check out our FAQ X