1package conv
2
3import (
4	"github.com/go-openapi/strfmt"
5)
6
7// Base64 returns a pointer to of the Base64 value passed in.
8func Base64(v strfmt.Base64) *strfmt.Base64 {
9	return &v
10}
11
12// Base64Value returns the value of the Base64 pointer passed in or
13// the default value if the pointer is nil.
14func Base64Value(v *strfmt.Base64) strfmt.Base64 {
15	if v == nil {
16		return nil
17	}
18
19	return *v
20}
21
22// URI returns a pointer to of the URI value passed in.
23func URI(v strfmt.URI) *strfmt.URI {
24	return &v
25}
26
27// URIValue returns the value of the URI pointer passed in or
28// the default value if the pointer is nil.
29func URIValue(v *strfmt.URI) strfmt.URI {
30	if v == nil {
31		return strfmt.URI("")
32	}
33
34	return *v
35}
36
37// Email returns a pointer to of the Email value passed in.
38func Email(v strfmt.Email) *strfmt.Email {
39	return &v
40}
41
42// EmailValue returns the value of the Email pointer passed in or
43// the default value if the pointer is nil.
44func EmailValue(v *strfmt.Email) strfmt.Email {
45	if v == nil {
46		return strfmt.Email("")
47	}
48
49	return *v
50}
51
52// Hostname returns a pointer to of the Hostname value passed in.
53func Hostname(v strfmt.Hostname) *strfmt.Hostname {
54	return &v
55}
56
57// HostnameValue returns the value of the Hostname pointer passed in or
58// the default value if the pointer is nil.
59func HostnameValue(v *strfmt.Hostname) strfmt.Hostname {
60	if v == nil {
61		return strfmt.Hostname("")
62	}
63
64	return *v
65}
66
67// IPv4 returns a pointer to of the IPv4 value passed in.
68func IPv4(v strfmt.IPv4) *strfmt.IPv4 {
69	return &v
70}
71
72// IPv4Value returns the value of the IPv4 pointer passed in or
73// the default value if the pointer is nil.
74func IPv4Value(v *strfmt.IPv4) strfmt.IPv4 {
75	if v == nil {
76		return strfmt.IPv4("")
77	}
78
79	return *v
80}
81
82// IPv6 returns a pointer to of the IPv6 value passed in.
83func IPv6(v strfmt.IPv6) *strfmt.IPv6 {
84	return &v
85}
86
87// IPv6Value returns the value of the IPv6 pointer passed in or
88// the default value if the pointer is nil.
89func IPv6Value(v *strfmt.IPv6) strfmt.IPv6 {
90	if v == nil {
91		return strfmt.IPv6("")
92	}
93
94	return *v
95}
96
97// CIDR returns a pointer to of the CIDR value passed in.
98func CIDR(v strfmt.CIDR) *strfmt.CIDR {
99	return &v
100}
101
102// CIDRValue returns the value of the CIDR pointer passed in or
103// the default value if the pointer is nil.
104func CIDRValue(v *strfmt.CIDR) strfmt.CIDR {
105	if v == nil {
106		return strfmt.CIDR("")
107	}
108
109	return *v
110}
111
112// MAC returns a pointer to of the MAC value passed in.
113func MAC(v strfmt.MAC) *strfmt.MAC {
114	return &v
115}
116
117// MACValue returns the value of the MAC pointer passed in or
118// the default value if the pointer is nil.
119func MACValue(v *strfmt.MAC) strfmt.MAC {
120	if v == nil {
121		return strfmt.MAC("")
122	}
123
124	return *v
125}
126
127// UUID returns a pointer to of the UUID value passed in.
128func UUID(v strfmt.UUID) *strfmt.UUID {
129	return &v
130}
131
132// UUIDValue returns the value of the UUID pointer passed in or
133// the default value if the pointer is nil.
134func UUIDValue(v *strfmt.UUID) strfmt.UUID {
135	if v == nil {
136		return strfmt.UUID("")
137	}
138
139	return *v
140}
141
142// UUID3 returns a pointer to of the UUID3 value passed in.
143func UUID3(v strfmt.UUID3) *strfmt.UUID3 {
144	return &v
145}
146
147// UUID3Value returns the value of the UUID3 pointer passed in or
148// the default value if the pointer is nil.
149func UUID3Value(v *strfmt.UUID3) strfmt.UUID3 {
150	if v == nil {
151		return strfmt.UUID3("")
152	}
153
154	return *v
155}
156
157// UUID4 returns a pointer to of the UUID4 value passed in.
158func UUID4(v strfmt.UUID4) *strfmt.UUID4 {
159	return &v
160}
161
162// UUID4Value returns the value of the UUID4 pointer passed in or
163// the default value if the pointer is nil.
164func UUID4Value(v *strfmt.UUID4) strfmt.UUID4 {
165	if v == nil {
166		return strfmt.UUID4("")
167	}
168
169	return *v
170}
171
172// UUID5 returns a pointer to of the UUID5 value passed in.
173func UUID5(v strfmt.UUID5) *strfmt.UUID5 {
174	return &v
175}
176
177// UUID5Value returns the value of the UUID5 pointer passed in or
178// the default value if the pointer is nil.
179func UUID5Value(v *strfmt.UUID5) strfmt.UUID5 {
180	if v == nil {
181		return strfmt.UUID5("")
182	}
183
184	return *v
185}
186
187// ISBN returns a pointer to of the ISBN value passed in.
188func ISBN(v strfmt.ISBN) *strfmt.ISBN {
189	return &v
190}
191
192// ISBNValue returns the value of the ISBN pointer passed in or
193// the default value if the pointer is nil.
194func ISBNValue(v *strfmt.ISBN) strfmt.ISBN {
195	if v == nil {
196		return strfmt.ISBN("")
197	}
198
199	return *v
200}
201
202// ISBN10 returns a pointer to of the ISBN10 value passed in.
203func ISBN10(v strfmt.ISBN10) *strfmt.ISBN10 {
204	return &v
205}
206
207// ISBN10Value returns the value of the ISBN10 pointer passed in or
208// the default value if the pointer is nil.
209func ISBN10Value(v *strfmt.ISBN10) strfmt.ISBN10 {
210	if v == nil {
211		return strfmt.ISBN10("")
212	}
213
214	return *v
215}
216
217// ISBN13 returns a pointer to of the ISBN13 value passed in.
218func ISBN13(v strfmt.ISBN13) *strfmt.ISBN13 {
219	return &v
220}
221
222// ISBN13Value returns the value of the ISBN13 pointer passed in or
223// the default value if the pointer is nil.
224func ISBN13Value(v *strfmt.ISBN13) strfmt.ISBN13 {
225	if v == nil {
226		return strfmt.ISBN13("")
227	}
228
229	return *v
230}
231
232// CreditCard returns a pointer to of the CreditCard value passed in.
233func CreditCard(v strfmt.CreditCard) *strfmt.CreditCard {
234	return &v
235}
236
237// CreditCardValue returns the value of the CreditCard pointer passed in or
238// the default value if the pointer is nil.
239func CreditCardValue(v *strfmt.CreditCard) strfmt.CreditCard {
240	if v == nil {
241		return strfmt.CreditCard("")
242	}
243
244	return *v
245}
246
247// SSN returns a pointer to of the SSN value passed in.
248func SSN(v strfmt.SSN) *strfmt.SSN {
249	return &v
250}
251
252// SSNValue returns the value of the SSN pointer passed in or
253// the default value if the pointer is nil.
254func SSNValue(v *strfmt.SSN) strfmt.SSN {
255	if v == nil {
256		return strfmt.SSN("")
257	}
258
259	return *v
260}
261
262// HexColor returns a pointer to of the HexColor value passed in.
263func HexColor(v strfmt.HexColor) *strfmt.HexColor {
264	return &v
265}
266
267// HexColorValue returns the value of the HexColor pointer passed in or
268// the default value if the pointer is nil.
269func HexColorValue(v *strfmt.HexColor) strfmt.HexColor {
270	if v == nil {
271		return strfmt.HexColor("")
272	}
273
274	return *v
275}
276
277// RGBColor returns a pointer to of the RGBColor value passed in.
278func RGBColor(v strfmt.RGBColor) *strfmt.RGBColor {
279	return &v
280}
281
282// RGBColorValue returns the value of the RGBColor pointer passed in or
283// the default value if the pointer is nil.
284func RGBColorValue(v *strfmt.RGBColor) strfmt.RGBColor {
285	if v == nil {
286		return strfmt.RGBColor("")
287	}
288
289	return *v
290}
291
292// Password returns a pointer to of the Password value passed in.
293func Password(v strfmt.Password) *strfmt.Password {
294	return &v
295}
296
297// PasswordValue returns the value of the Password pointer passed in or
298// the default value if the pointer is nil.
299func PasswordValue(v *strfmt.Password) strfmt.Password {
300	if v == nil {
301		return strfmt.Password("")
302	}
303
304	return *v
305}
306