Cloud Storage API v1beta1 (revision 34)



com.google.api.services.storage.model
Class Bucket.Website

java.lang.Object
  extended by java.util.AbstractMap<String,Object>
      extended by com.google.api.client.util.GenericData
          extended by com.google.api.client.json.GenericJson
              extended by com.google.api.services.storage.model.Bucket.Website
All Implemented Interfaces:
Cloneable, Map<String,Object>
Enclosing class:
Bucket

public static final class Bucket.Website
extends GenericJson

The bucket's website configuration.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
GenericData.Flags
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
Bucket.Website()
           
 
Method Summary
 Bucket.Website clone()
           
 String getMainPageSuffix()
          Behaves as the bucket's directory index where missing objects are treated as potential directories.
 String getNotFoundPage()
          The custom object to return when a requested resource is not found.
 Bucket.Website set(String fieldName, Object value)
           
 Bucket.Website setMainPageSuffix(String mainPageSuffix)
          Behaves as the bucket's directory index where missing objects are treated as potential directories.
 Bucket.Website setNotFoundPage(String notFoundPage)
          The custom object to return when a requested resource is not found.
 
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
 
Methods inherited from class com.google.api.client.util.GenericData
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
 
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Bucket.Website

public Bucket.Website()
Method Detail

getMainPageSuffix

public String getMainPageSuffix()
Behaves as the bucket's directory index where missing objects are treated as potential directories.

Returns:
value or null for none

setMainPageSuffix

public Bucket.Website setMainPageSuffix(String mainPageSuffix)
Behaves as the bucket's directory index where missing objects are treated as potential directories.

Parameters:
mainPageSuffix - mainPageSuffix or null for none

getNotFoundPage

public String getNotFoundPage()
The custom object to return when a requested resource is not found.

Returns:
value or null for none

setNotFoundPage

public Bucket.Website setNotFoundPage(String notFoundPage)
The custom object to return when a requested resource is not found.

Parameters:
notFoundPage - notFoundPage or null for none

set

public Bucket.Website set(String fieldName,
                          Object value)
Overrides:
set in class GenericJson

clone

public Bucket.Website clone()
Overrides:
clone in class GenericJson