![JAR search and dependency download from the Maven repository](/logo.png)
com.opsmatters.bitly.api.model.v4.CreateFullBitlinkRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bitly-java-api Show documentation
Show all versions of bitly-java-api Show documentation
Java client library to execute operations on URLs using the Bitly API.
/*
* Copyright 2020 Gerald Curley
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License 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 com.opsmatters.bitly.api.model.v4;
import java.util.List;
import com.google.gson.annotations.SerializedName;
/**
* Represents a request to create a full bitlink.
*
* @author Gerald Curley (opsmatters)
*/
public class CreateFullBitlinkRequest extends CreateBitlinkRequest
{
private String title;
private List tags;
private List deeplinks;
/**
* Default constructor.
*/
public CreateFullBitlinkRequest()
{
}
/**
* Returns the title of the bitlink.
* @return The title of the bitlink
*/
public String getTitle()
{
return title;
}
/**
* Sets the title of the bitlink.
* @param title The title of the bitlink
*/
public void setTitle(String title)
{
this.title = title;
}
/**
* Returns the tags for the bitlink.
* @return The tags for the bitlink
*/
public List getTags()
{
return tags;
}
/**
* Sets the tags for the bitlink.
* @param tags The tags for the bitlink
*/
public void setTags(List tags)
{
this.tags = tags;
}
/**
* Returns the deeplinks for the bitlink.
* @return The deeplinks for the bitlink
*/
public List getDeeplinks()
{
return deeplinks;
}
/**
* Sets the deeplinks for the bitlink.
* @param deeplinks The deeplinks for the bitlink
*/
public void setDeeplinks(List deeplinks)
{
this.deeplinks = deeplinks;
}
/**
* Returns a string representation of the object.
*/
@Override
public String toString()
{
return "CreateFullBitlinkRequest ["
+super.toString()
+", title="+title
+", tags="+tags
+", deeplinks="+deeplinks
+"]";
}
/**
* Returns a builder for the request.
* @return The builder instance.
*/
public static Builder builder()
{
return new Builder();
}
/**
* Builder to make request construction easier.
*/
public static class Builder extends CreateBitlinkRequest.Builder
{
private CreateFullBitlinkRequest request = new CreateFullBitlinkRequest();
/**
* Default constructor.
*/
public Builder()
{
request(request);
}
/**
* Sets the group guid of the request.
* @param groupGuid The group guid of the request
* @return This object
*/
public Builder groupGuid(String groupGuid)
{
request.setGroupGuid(groupGuid);
return this;
}
/**
* Sets the domain of the request.
* @param domain The domain of the request
* @return This object
*/
public Builder domain(String domain)
{
request.setDomain(domain);
return this;
}
/**
* Sets the title of the request.
* @param title The title of the request
* @return This object
*/
public Builder title(String title)
{
request.setTitle(title);
return this;
}
/**
* Sets the long url of the request.
* @param longUrl The long url of the request
* @return This object
*/
public Builder longUrl(String longUrl)
{
request.setLongUrl(longUrl);
return this;
}
/**
* Sets the tags for the request.
* @param tags The tags for the request
* @return This object
*/
public Builder tags(List tags)
{
request.setTags(tags);
return this;
}
/**
* Sets the deeplinks for the request.
* @param deeplinks The deeplinks for the request
* @return This object
*/
public Builder deeplinks(List deeplinks)
{
request.setDeeplinks(deeplinks);
return this;
}
/**
* Returns this object.
* @return This object
*/
@Override
protected Builder self()
{
return this;
}
/**
* Returns the configured request
* @return The request instance
*/
@Override
public CreateFullBitlinkRequest build()
{
return request;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy