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

io.gs2.gateway.request.CreateNamespaceRequest Maven / Gradle / Ivy

/*
 * Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
 * Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License").
 * You may not use this file except in compliance with the License.
 * A copy of the License is located at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 * or in the "license" file accompanying this file. This file is distributed
 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
 * express or implied. See the License for the specific language governing
 * permissions and limitations under the License.
 */

package io.gs2.gateway.request;

import org.json.JSONObject;
import java.util.List;
import java.util.Map;
import io.gs2.gateway.model.*;
import io.gs2.control.Gs2BasicRequest;

/**
 * ネームスペースを新規作成 のリクエストモデル
 *
 * @author Game Server Services, Inc.
 */
@SuppressWarnings("serial")
public class CreateNamespaceRequest extends Gs2BasicRequest {

    /** ネームスペース名 */
    private String name;

    /**
     * ネームスペース名を取得
     *
     * @return ネームスペースを新規作成
     */
    public String getName() {
        return name;
    }

    /**
     * ネームスペース名を設定
     *
     * @param name ネームスペースを新規作成
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * ネームスペース名を設定
     *
     * @param name ネームスペースを新規作成
     * @return this
     */
    public CreateNamespaceRequest withName(String name) {
        setName(name);
        return this;
    }

    /** 説明文 */
    private String description;

    /**
     * 説明文を取得
     *
     * @return ネームスペースを新規作成
     */
    public String getDescription() {
        return description;
    }

    /**
     * 説明文を設定
     *
     * @param description ネームスペースを新規作成
     */
    public void setDescription(String description) {
        this.description = description;
    }

    /**
     * 説明文を設定
     *
     * @param description ネームスペースを新規作成
     * @return this
     */
    public CreateNamespaceRequest withDescription(String description) {
        setDescription(description);
        return this;
    }

    /** Firebase の通知送信に使用するシークレットトークン */
    private String firebaseSecret;

    /**
     * Firebase の通知送信に使用するシークレットトークンを取得
     *
     * @return ネームスペースを新規作成
     */
    public String getFirebaseSecret() {
        return firebaseSecret;
    }

    /**
     * Firebase の通知送信に使用するシークレットトークンを設定
     *
     * @param firebaseSecret ネームスペースを新規作成
     */
    public void setFirebaseSecret(String firebaseSecret) {
        this.firebaseSecret = firebaseSecret;
    }

    /**
     * Firebase の通知送信に使用するシークレットトークンを設定
     *
     * @param firebaseSecret ネームスペースを新規作成
     * @return this
     */
    public CreateNamespaceRequest withFirebaseSecret(String firebaseSecret) {
        setFirebaseSecret(firebaseSecret);
        return this;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy