001// Generated by delombok at Sun Apr 14 14:59:49 CEST 2024
002/*
003 * Copyright (c) 2010-2024 Mark Allen, Norbert Bartels.
004 *
005 * Permission is hereby granted, free of charge, to any person obtaining a copy
006 * of this software and associated documentation files (the "Software"), to deal
007 * in the Software without restriction, including without limitation the rights
008 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
009 * copies of the Software, and to permit persons to whom the Software is
010 * furnished to do so, subject to the following conditions:
011 *
012 * The above copyright notice and this permission notice shall be included in
013 * all copies or substantial portions of the Software.
014 *
015 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
016 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
017 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
018 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
019 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
020 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
021 * THE SOFTWARE.
022 */
023package com.restfb.types;
024
025import com.restfb.Facebook;
026
027/**
028 * Represents the <a href="https://developers.facebook.com/docs/graph-api/reference/tab/">Page Tab type</a>
029 */
030public class PageTab extends NamedFacebookType {
031        private static final long serialVersionUID = 1L;
032        /**
033         * The app that is in the tab
034         */
035        @Facebook
036        private Application application;
037        /**
038         * URL for an image to be used as a custom icon
039         */
040        @Facebook("custom_image_url")
041        private String customImageUrl;
042        /**
043         * Name to be used for the tab
044         */
045        @Facebook("custom_name")
046        private String customName;
047        /**
048         * The location of the tab thumbnail image
049         */
050        @Facebook("image_url")
051        private String imageUrl;
052        /**
053         * A flag to identify whether the tab is a custom landing tab for users who are not connected to this Page
054         */
055        @Facebook("is_non_connection_landing_tab")
056        private Boolean isNonConnectionLandingTab;
057        /**
058         * A flag to identify whether the tab can be removed from the Page
059         */
060        @Facebook("is_permanent")
061        private Boolean isPermanent;
062        /**
063         * A link directly to this Page tab
064         */
065        @Facebook
066        private String link;
067        /**
068         * Where this tab is located in the list of tabs
069         */
070        @Facebook
071        private Integer position;
072
073        /**
074         * The app that is in the tab
075         */
076        @java.lang.SuppressWarnings("all")
077        public Application getApplication() {
078                return this.application;
079        }
080
081        /**
082         * The app that is in the tab
083         */
084        @java.lang.SuppressWarnings("all")
085        public void setApplication(final Application application) {
086                this.application = application;
087        }
088
089        /**
090         * URL for an image to be used as a custom icon
091         */
092        @java.lang.SuppressWarnings("all")
093        public String getCustomImageUrl() {
094                return this.customImageUrl;
095        }
096
097        /**
098         * URL for an image to be used as a custom icon
099         */
100        @java.lang.SuppressWarnings("all")
101        public void setCustomImageUrl(final String customImageUrl) {
102                this.customImageUrl = customImageUrl;
103        }
104
105        /**
106         * Name to be used for the tab
107         */
108        @java.lang.SuppressWarnings("all")
109        public String getCustomName() {
110                return this.customName;
111        }
112
113        /**
114         * Name to be used for the tab
115         */
116        @java.lang.SuppressWarnings("all")
117        public void setCustomName(final String customName) {
118                this.customName = customName;
119        }
120
121        /**
122         * The location of the tab thumbnail image
123         */
124        @java.lang.SuppressWarnings("all")
125        public String getImageUrl() {
126                return this.imageUrl;
127        }
128
129        /**
130         * The location of the tab thumbnail image
131         */
132        @java.lang.SuppressWarnings("all")
133        public void setImageUrl(final String imageUrl) {
134                this.imageUrl = imageUrl;
135        }
136
137        /**
138         * A flag to identify whether the tab is a custom landing tab for users who are not connected to this Page
139         */
140        @java.lang.SuppressWarnings("all")
141        public Boolean getIsNonConnectionLandingTab() {
142                return this.isNonConnectionLandingTab;
143        }
144
145        /**
146         * A flag to identify whether the tab is a custom landing tab for users who are not connected to this Page
147         */
148        @java.lang.SuppressWarnings("all")
149        public void setIsNonConnectionLandingTab(final Boolean isNonConnectionLandingTab) {
150                this.isNonConnectionLandingTab = isNonConnectionLandingTab;
151        }
152
153        /**
154         * A flag to identify whether the tab can be removed from the Page
155         */
156        @java.lang.SuppressWarnings("all")
157        public Boolean getIsPermanent() {
158                return this.isPermanent;
159        }
160
161        /**
162         * A flag to identify whether the tab can be removed from the Page
163         */
164        @java.lang.SuppressWarnings("all")
165        public void setIsPermanent(final Boolean isPermanent) {
166                this.isPermanent = isPermanent;
167        }
168
169        /**
170         * A link directly to this Page tab
171         */
172        @java.lang.SuppressWarnings("all")
173        public String getLink() {
174                return this.link;
175        }
176
177        /**
178         * A link directly to this Page tab
179         */
180        @java.lang.SuppressWarnings("all")
181        public void setLink(final String link) {
182                this.link = link;
183        }
184
185        /**
186         * Where this tab is located in the list of tabs
187         */
188        @java.lang.SuppressWarnings("all")
189        public Integer getPosition() {
190                return this.position;
191        }
192
193        /**
194         * Where this tab is located in the list of tabs
195         */
196        @java.lang.SuppressWarnings("all")
197        public void setPosition(final Integer position) {
198                this.position = position;
199        }
200}