io.permit.sdk.openapi.models.OrganizationRead Maven / Gradle / Ivy
Show all versions of permit-sdk-java Show documentation
package io.permit.sdk.openapi.models;
import java.util.Date;
import javax.annotation.Generated;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
/**
* OrganizationRead
*
*
*
*/
@Generated("jsonschema2pojo")
public class OrganizationRead {
/**
* Key
*
* A URL-friendly name of the organization (i.e: slug). You will be able to query later using this key instead of the id (UUID) of the organization.
* (Required)
*
*/
@SerializedName("key")
@Expose
public String key;
/**
* Id
*
* Unique id of the organization
* (Required)
*
*/
@SerializedName("id")
@Expose
public String id;
/**
* Created At
*
* Date and time when the organization was created (ISO_8601 format).
* (Required)
*
*/
@SerializedName("created_at")
@Expose
public Date createdAt;
/**
* Updated At
*
* Date and time when the organization was last updated/modified (ISO_8601 format).
* (Required)
*
*/
@SerializedName("updated_at")
@Expose
public Date updatedAt;
/**
* Name
*
* The name of the organization, usually it's your company's name.
* (Required)
*
*/
@SerializedName("name")
@Expose
public String name;
/**
* Settings
*
* the settings for this project
*
*/
@SerializedName("settings")
@Expose
public Settings__1 settings;
/**
* No args constructor for use in serialization
*
*/
public OrganizationRead() {
}
/**
*
* @param createdAt
* @param name
* @param id
* @param key
* @param updatedAt
*/
public OrganizationRead(String key, String id, Date createdAt, Date updatedAt, String name) {
super();
this.key = key;
this.id = id;
this.createdAt = createdAt;
this.updatedAt = updatedAt;
this.name = name;
}
public OrganizationRead withKey(String key) {
this.key = key;
return this;
}
public OrganizationRead withId(String id) {
this.id = id;
return this;
}
public OrganizationRead withCreatedAt(Date createdAt) {
this.createdAt = createdAt;
return this;
}
public OrganizationRead withUpdatedAt(Date updatedAt) {
this.updatedAt = updatedAt;
return this;
}
public OrganizationRead withName(String name) {
this.name = name;
return this;
}
public OrganizationRead withSettings(Settings__1 settings) {
this.settings = settings;
return this;
}
}