View Javadoc

1   package com.atlassian.marketplace.client.model;
2   
3   import com.atlassian.fugue.Option;
4   
5   /**
6    * Standard postal address properties.  Only the first line of the address is required.
7    * @since 2.0.0
8    */
9   public class Address
10  {
11      String line1;
12      Option<String> line2;
13      Option<String> city;
14      Option<String> state;
15      Option<String> postCode;
16      Option<String> country;
17  
18      /**
19       * The first line of the address.
20       * @see ModelBuilders.AddressBuilder#line1(String)
21       */
22      public String getLine1()
23      {
24          return line1;
25      }
26  
27      /**
28       * The second line of the address, if any.
29       * @see ModelBuilders.AddressBuilder#line2(Option)
30       */
31      public Option<String> getLine2()
32      {
33          return line2;
34      }
35  
36      /**
37       * The city name.
38       * @see ModelBuilders.AddressBuilder#city(Option)
39       */
40      public Option<String> getCity()
41      {
42          return city;
43      }
44  
45      /**
46       * The state or province name.
47       * @see ModelBuilders.AddressBuilder#state(Option)
48       */
49      public Option<String> getState()
50      {
51          return state;
52      }
53  
54      /**
55       * The postal code, if applicable.
56       * @see ModelBuilders.AddressBuilder#postCode(Option)
57       */
58      public Option<String> getPostCode()
59      {
60          return postCode;
61      }
62  
63      /**
64       * The ISO-3166 country code.
65       * @see ModelBuilders.AddressBuilder#country(Option)
66       */
67      public Option<String> getCountry()
68      {
69          return country;
70      }
71  }