Class CreateKeyOptions.Builder

    • Constructor Detail

      • Builder

        public Builder()
        Instantiates a new builder.
      • Builder

        public Builder​(String bluemixInstance,
                       InputStream keyCreateBody)
        Instantiates a new builder with required properties.
        Parameters:
        bluemixInstance - the bluemixInstance
        keyCreateBody - the keyCreateBody
    • Method Detail

      • build

        public CreateKeyOptions build()
        Builds a CreateKeyOptions.
        Returns:
        the new CreateKeyOptions instance
      • bluemixInstance

        public CreateKeyOptions.Builder bluemixInstance​(String bluemixInstance)
        Set the bluemixInstance.
        Parameters:
        bluemixInstance - the bluemixInstance
        Returns:
        the CreateKeyOptions builder
      • keyCreateBody

        public CreateKeyOptions.Builder keyCreateBody​(InputStream keyCreateBody)
        Set the keyCreateBody.
        Parameters:
        keyCreateBody - the keyCreateBody
        Returns:
        the CreateKeyOptions builder
      • correlationId

        public CreateKeyOptions.Builder correlationId​(String correlationId)
        Set the correlationId.
        Parameters:
        correlationId - the correlationId
        Returns:
        the CreateKeyOptions builder
      • prefer

        public CreateKeyOptions.Builder prefer​(String prefer)
        Set the prefer.
        Parameters:
        prefer - the prefer
        Returns:
        the CreateKeyOptions builder
      • xKmsKeyRing

        public CreateKeyOptions.Builder xKmsKeyRing​(String xKmsKeyRing)
        Set the xKmsKeyRing.
        Parameters:
        xKmsKeyRing - the xKmsKeyRing
        Returns:
        the CreateKeyOptions builder