001// Generated by delombok at Fri Oct 04 16:05:59 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/privacy/">Privacy Graph API type</a> 029 * . 030 * 031 * @author <a href="http://restfb.com">Mark Allen</a> 032 * @since 1.5 033 */ 034public class Privacy extends AbstractFacebookType { 035 /** 036 * The description of the privacy value. 037 */ 038 @Facebook 039 private String value; 040 /** 041 * The privacy description. 042 */ 043 @Facebook 044 private String description; 045 /** 046 * The privacy friends restriction. 047 */ 048 @Facebook 049 private String friends; 050 /** 051 * The privacy networks restriction. 052 */ 053 @Facebook 054 private String networks; 055 /** 056 * For CUSTOM settings, a comma-separated list of user IDs and friend list IDs that "cannot" see the post. 057 */ 058 @Facebook 059 private String deny; 060 /** 061 * For CUSTOM settings, a comma-separated list of user IDs and friend list IDs that "can" see the post. This can also 062 * be ALL_FRIENDS or FRIENDS_OF_FRIENDS to include all members of those sets. 063 */ 064 @Facebook 065 private String allow; 066 private static final long serialVersionUID = 1L; 067 068 /** 069 * The description of the privacy value. 070 * 071 * @return The description of the privacy value. 072 */ 073 @java.lang.SuppressWarnings("all") 074 public String getValue() { 075 return this.value; 076 } 077 078 /** 079 * The description of the privacy value. 080 */ 081 @java.lang.SuppressWarnings("all") 082 public void setValue(final String value) { 083 this.value = value; 084 } 085 086 /** 087 * The privacy description. 088 * 089 * @return The privacy description. 090 */ 091 @java.lang.SuppressWarnings("all") 092 public String getDescription() { 093 return this.description; 094 } 095 096 /** 097 * The privacy description. 098 */ 099 @java.lang.SuppressWarnings("all") 100 public void setDescription(final String description) { 101 this.description = description; 102 } 103 104 /** 105 * The privacy friends restriction. 106 * 107 * @return The privacy friends restriction. 108 */ 109 @java.lang.SuppressWarnings("all") 110 public String getFriends() { 111 return this.friends; 112 } 113 114 /** 115 * The privacy friends restriction. 116 */ 117 @java.lang.SuppressWarnings("all") 118 public void setFriends(final String friends) { 119 this.friends = friends; 120 } 121 122 /** 123 * The privacy networks restriction. 124 * 125 * @return The privacy networks restriction. 126 */ 127 @java.lang.SuppressWarnings("all") 128 public String getNetworks() { 129 return this.networks; 130 } 131 132 /** 133 * The privacy networks restriction. 134 */ 135 @java.lang.SuppressWarnings("all") 136 public void setNetworks(final String networks) { 137 this.networks = networks; 138 } 139 140 /** 141 * For CUSTOM settings, a comma-separated list of user IDs and friend list IDs that "cannot" see the post. 142 * 143 * @return The privacy "deny" restriction. 144 */ 145 @java.lang.SuppressWarnings("all") 146 public String getDeny() { 147 return this.deny; 148 } 149 150 /** 151 * For CUSTOM settings, a comma-separated list of user IDs and friend list IDs that "cannot" see the post. 152 */ 153 @java.lang.SuppressWarnings("all") 154 public void setDeny(final String deny) { 155 this.deny = deny; 156 } 157 158 /** 159 * For CUSTOM settings, a comma-separated list of user IDs and friend list IDs that "can" see the post. This can also 160 * be ALL_FRIENDS or FRIENDS_OF_FRIENDS to include all members of those sets. 161 * 162 * @return The privacy "allow" restriction. 163 */ 164 @java.lang.SuppressWarnings("all") 165 public String getAllow() { 166 return this.allow; 167 } 168 169 /** 170 * For CUSTOM settings, a comma-separated list of user IDs and friend list IDs that "can" see the post. This can also 171 * be ALL_FRIENDS or FRIENDS_OF_FRIENDS to include all members of those sets. 172 */ 173 @java.lang.SuppressWarnings("all") 174 public void setAllow(final String allow) { 175 this.allow = allow; 176 } 177}