com.opsmatters.bitly.api.model.v4.Campaign Maven / Gradle / Ivy
/*
* 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.Map;
import com.google.gson.annotations.SerializedName;
/**
* Represents the attributes of a campaign.
*
* @author Gerald Curley (opsmatters)
*/
public class Campaign
{
private String guid;
private String name;
private String description;
private String created;
private String modified;
private Map references;
@SerializedName("group_guid")
private String groupGuid;
@SerializedName("created_by")
private String createdBy;
/**
* Default constructor.
*/
public Campaign()
{
}
/**
* Returns the GUID of the campaign.
* @return The GUID of the campaign
*/
public String getGuid()
{
return guid;
}
/**
* Returns the name of the campaign.
* @return The name of the campaign
*/
public String getName()
{
return name;
}
/**
* Returns the description of the campaign.
* @return The description of the campaign
*/
public String getDescription()
{
return description;
}
/**
* Returns the created date for the campaign.
* @return The created date for the campaign
*/
public String getCreated()
{
return created;
}
/**
* Returns the modified date for the campaign.
* @return The modified date for the campaign
*/
public String getModified()
{
return modified;
}
/**
* Returns the creator for the campaign.
* @return The creator for the campaign
*/
public String getCreatedBy()
{
return createdBy;
}
/**
* Returns the group GUID of the campaign.
* @return The group GUID of the campaign
*/
public String getGroupGuid()
{
return groupGuid;
}
/**
* Returns the references for the campaign.
* @return The references for the campaign
*/
public Map getReferences()
{
return references;
}
/**
* Returns a string representation of the object.
*/
@Override
public String toString()
{
return "Campaign ["
+"guid="+guid
+", name="+name
+", description="+description
+", groupGuid="+groupGuid
+", created="+created
+", modified="+modified
+", createdBy="+createdBy
+", references="+references
+"]";
}
}