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

com.chargebee.models.SiteMigrationDetail Maven / Gradle / Ivy

There is a newer version: 3.26.0
Show newest version
package com.chargebee.models;

import com.chargebee.*;
import com.chargebee.internal.*;
import com.chargebee.filters.*;
import com.chargebee.filters.enums.SortOrder;
import com.chargebee.internal.HttpUtil.Method;
import com.chargebee.models.enums.*;
import org.json.*;
import java.io.*;
import java.sql.Timestamp;
import java.util.*;

public class SiteMigrationDetail extends Resource {

    public enum Status {
        MOVED_IN,
        MOVED_OUT,
        MOVING_OUT,
        _UNKNOWN; /*Indicates unexpected value for this enum. You can get this when there is a
        java-client version incompatibility. We suggest you to upgrade to the latest version */
    }

    //Constructors
    //============

    public SiteMigrationDetail(String jsonStr) {
        super(jsonStr);
    }

    public SiteMigrationDetail(JSONObject jsonObj) {
        super(jsonObj);
    }

    // Fields
    //=======

    public String entityId() {
        return reqString("entity_id");
    }

    public String otherSiteName() {
        return reqString("other_site_name");
    }

    public String entityIdAtOtherSite() {
        return reqString("entity_id_at_other_site");
    }

    public Timestamp migratedAt() {
        return reqTimestamp("migrated_at");
    }

    public EntityType entityType() {
        return reqEnum("entity_type", EntityType.class);
    }

    public Status status() {
        return reqEnum("status", Status.class);
    }

    // Operations
    //===========

    public static SiteMigrationDetailListRequest list() {
        String uri = uri("site_migration_details");
        return new SiteMigrationDetailListRequest(uri);
    }


    // Operation Request Classes
    //==========================

    public static class SiteMigrationDetailListRequest extends ListRequest {

        private SiteMigrationDetailListRequest(String uri) {
            super(uri);
        }
    
        public StringFilter entityIdAtOtherSite() {
            return new StringFilter("entity_id_at_other_site",this);        
        }


        public StringFilter otherSiteName() {
            return new StringFilter("other_site_name",this);        
        }


        public StringFilter entityId() {
            return new StringFilter("entity_id",this);        
        }


        public EnumFilter entityType() {
            return new EnumFilter("entity_type",this);        
        }


        public EnumFilter status() {
            return new EnumFilter("status",this);        
        }


        @Override
        public Params params() {
            return params;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy