Package io.lakefs.clients.sdk.model
Class RepositoryCreation
- java.lang.Object
-
- io.lakefs.clients.sdk.model.RepositoryCreation
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class RepositoryCreation extends Object
RepositoryCreation
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRepositoryCreation.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_DEFAULT_BRANCHstatic StringSERIALIZED_NAME_NAMEstatic StringSERIALIZED_NAME_READ_ONLYstatic StringSERIALIZED_NAME_SAMPLE_DATAstatic StringSERIALIZED_NAME_STORAGE_NAMESPACE
-
Constructor Summary
Constructors Constructor Description RepositoryCreation()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RepositoryCreationdefaultBranch(String defaultBranch)booleanequals(Object o)static RepositoryCreationfromJson(String jsonString)Create an instance of RepositoryCreation given an JSON stringMap<String,Object>getAdditionalProperties()Return the additional (undeclared) property.ObjectgetAdditionalProperty(String key)Return the additional (undeclared) property with the specified name.StringgetDefaultBranch()Get defaultBranchStringgetName()Get nameBooleangetReadOnly()Get readOnlyBooleangetSampleData()Get sampleDataStringgetStorageNamespace()Filesystem URI to store the underlying data in (e.g.inthashCode()RepositoryCreationname(String name)RepositoryCreationputAdditionalProperty(String key, Object value)Set the additional (undeclared) property with the specified name and value.RepositoryCreationreadOnly(Boolean readOnly)RepositoryCreationsampleData(Boolean sampleData)voidsetDefaultBranch(String defaultBranch)voidsetName(String name)voidsetReadOnly(Boolean readOnly)voidsetSampleData(Boolean sampleData)voidsetStorageNamespace(String storageNamespace)RepositoryCreationstorageNamespace(String storageNamespace)StringtoJson()Convert an instance of RepositoryCreation to an JSON stringStringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_NAME
public static final String SERIALIZED_NAME_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STORAGE_NAMESPACE
public static final String SERIALIZED_NAME_STORAGE_NAMESPACE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DEFAULT_BRANCH
public static final String SERIALIZED_NAME_DEFAULT_BRANCH
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SAMPLE_DATA
public static final String SERIALIZED_NAME_SAMPLE_DATA
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_READ_ONLY
public static final String SERIALIZED_NAME_READ_ONLY
- See Also:
- Constant Field Values
-
-
Method Detail
-
name
public RepositoryCreation name(String name)
-
setName
public void setName(String name)
-
storageNamespace
public RepositoryCreation storageNamespace(String storageNamespace)
-
getStorageNamespace
@Nonnull public String getStorageNamespace()
Filesystem URI to store the underlying data in (e.g. \"s3://my-bucket/some/path/\")- Returns:
- storageNamespace
-
setStorageNamespace
public void setStorageNamespace(String storageNamespace)
-
defaultBranch
public RepositoryCreation defaultBranch(String defaultBranch)
-
getDefaultBranch
@Nullable public String getDefaultBranch()
Get defaultBranch- Returns:
- defaultBranch
-
setDefaultBranch
public void setDefaultBranch(String defaultBranch)
-
sampleData
public RepositoryCreation sampleData(Boolean sampleData)
-
setSampleData
public void setSampleData(Boolean sampleData)
-
readOnly
public RepositoryCreation readOnly(Boolean readOnly)
-
setReadOnly
public void setReadOnly(Boolean readOnly)
-
putAdditionalProperty
public RepositoryCreation putAdditionalProperty(String key, Object value)
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- name of the propertyvalue- value of the property- Returns:
- the RepositoryCreation instance itself
-
getAdditionalProperties
public Map<String,Object> getAdditionalProperties()
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
public Object getAdditionalProperty(String key)
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
validateJsonElement
public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOExceptionValidates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to RepositoryCreation
-
fromJson
public static RepositoryCreation fromJson(String jsonString) throws IOException
Create an instance of RepositoryCreation given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of RepositoryCreation
- Throws:
IOException- if the JSON string is invalid with respect to RepositoryCreation
-
toJson
public String toJson()
Convert an instance of RepositoryCreation to an JSON string- Returns:
- JSON string
-
-