Class TemplateInput

java.lang.Object
io.clientcore.annotation.processor.models.TemplateInput

public class TemplateInput extends Object
Represents the input required for generating a template.
  • Constructor Details

    • TemplateInput

      public TemplateInput()
      Initializes a new instance of the TemplateInput class.
  • Method Details

    • getHost

      public String getHost()
      Gets the host.
      Returns:
      the host.
    • setHost

      public void setHost(String host)
      Sets the host.
      Parameters:
      host - the host to set.
    • getImports

      public Map<String,String> getImports()
      Gets the imports map.
      Returns:
      the imports map.
    • getPackageName

      public String getPackageName()
      Gets the package name.
      Returns:
      the package name.
    • setPackageName

      public void setPackageName(String packageName)
      Sets the package name.
      Parameters:
      packageName - the package name to set.
    • getServiceInterfaceShortName

      public String getServiceInterfaceShortName()
      Gets the short name of the service interface.
      Returns:
      the short name of the service interface.
    • setServiceInterfaceShortName

      public void setServiceInterfaceShortName(String serviceInterfaceShortName)
      Sets the short name of the service interface.
      Parameters:
      serviceInterfaceShortName - the short name of the service interface to set.
    • getServiceInterfaceImplShortName

      public String getServiceInterfaceImplShortName()
      Gets the short name of the service interface implementation.
      Returns:
      the short name of the service interface implementation.
    • setServiceInterfaceImplShortName

      public void setServiceInterfaceImplShortName(String serviceInterfaceImplShortName)
      Sets the short name of the service interface implementation.
      Parameters:
      serviceInterfaceImplShortName - the short name of the service interface implementation to set.
    • addImport

      public String addImport(String importFQN)
      Adds an import to the imports map.
      Parameters:
      importFQN - the fully qualified name of the import.
      Returns:
      the short name of the class.
    • addImport

      public String addImport(TypeMirror type)
      Adds an import to the imports map based on the type mirror.
      Parameters:
      type - the type mirror.
      Returns:
      the short name of the class.
    • setHttpRequestContexts

      public void setHttpRequestContexts(List<HttpRequestContext> httpRequestContexts)
      Sets the HTTP request contexts.
      Parameters:
      httpRequestContexts - the list of HTTP request contexts to set.
    • getHttpRequestContexts

      public List<HttpRequestContext> getHttpRequestContexts()
      Gets the list of HTTP request contexts.
      Returns:
      the list of HTTP request contexts.
    • setServiceInterfaceFQN

      public void setServiceInterfaceFQN(String serviceInterfaceFQN)
      Sets the fully qualified name of the service interface.
      Parameters:
      serviceInterfaceFQN - the fully qualified name of the service interface to set.
    • getServiceInterfaceFQN

      public String getServiceInterfaceFQN()
      Gets the fully qualified name of the service interface.
      Returns:
      the fully qualified name of the service interface.
    • getUnexpectedResponseExceptionDetails

      public List<io.clientcore.core.http.annotations.UnexpectedResponseExceptionDetail> getUnexpectedResponseExceptionDetails()
      Gets the list of unexpected response exception details.
      Returns:
      the list of unexpected response exception details.
    • setUnexpectedResponseExceptionDetails

      public void setUnexpectedResponseExceptionDetails(List<io.clientcore.core.http.annotations.UnexpectedResponseExceptionDetail> unexpectedResponseExceptionDetails)
      Sets the list of unexpected response exception details.
      Parameters:
      unexpectedResponseExceptionDetails - the list of unexpected response exception details to set.